Log in
Entries RSS
Comments RSS
~ Collaboration Of Code and Processes
Search for:
1
votes
0
comments
754
views
Shell: File and Directory Testing
4.00 / 5
5
1 / 5
2 / 5
3 / 5
4 / 5
5 / 5
1
vote,
4.00
avg. rating (
50
% score)
Trying to find out if a file or a directory exists within a shell program is pretty easy. You may also want to test if the directory is a symlink or if the file is executable. Here are a few tips to perform some various validation tasks.
directory exists
file exists
if test
shell
Post Tags
Apache
awk
bash
dns
grep
java
linux
Nagios
Netbackup
perl
python
raid5
Remote Exploits
shell
shell-script
Solaris
stderr
stdout
syslog
unix
Post Categories
AIX
(1)
Amazon
(2)
Android Studio
(2)
Apache
(3)
AWS
(2)
CentOS
(1)
Cloud Services
(1)
Cpanel
(2)
Django
(2)
DNS
(2)
EMC
(1)
Java
(2)
Javascript
(2)
jQuery
(2)
Linux
(29)
Mac
(2)
Mac OS X
(1)
Nagios
(1)
Netbackup
(3)
Networking
(1)
Perl
(6)
PHP
(1)
Programming
(8)
Python
(3)
Ruby
(2)
Scripting
(19)
Security
(5)
Shell
(14)
Solaris
(4)
SSL
(1)
Storage
(4)
Ubuntu
(3)
Uncategorized
(3)
Unix
(15)
Veritas
(2)
VMware ESXi
(1)