write a shell script to check whether all the directories
in the path exist has read and write permission
Answer / geichel
#!/bin/bash
for x in $(echo $PATH |sed "s/:/ /g")
do
echo "Directories in your PATH which you cannot write are:"
echo $(find $x -perm /666 -type d -maxdepth 0 2>/dev/null
|xargs ls -dl | grep -v $USER)
done
exit 0;
Is This Answer Correct ? | 0 Yes | 2 No |
What is echo in shell?
What does sh mean?
What is a program shell?
How do you debug a script?
Write a shell script to looking at the log file to see if the test has passed or not
What is k shell?
What is bash used for?
How do scripts work?
How do you know which shell I am using?
Is SSO and SSL support BOXI?
What is sudo command?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com