c program to check whether all the directories in the path
exists has read and write permission
Answer / rakesh
#!/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 | 0 No |
Is SSO and SSL support BOXI?
How do I run a .sh file on mac?
how to create purchase order
How do we delete all blank lines in a file?
c program to check whether all the directories in the path exists has read and write permission
How does ls command work?
What is mac default shell?
How will you pass and access arguments to a script in linux?
What language is bash written in?
What is bash used for?
How do you create a shortcut in linux?
Create a bash shell script that reads in a number from the user. If the number is 1, print out the date. If the number is 2, list the files in the current directory. If the number is 3, print out who is currently logged onto the system. If the number is anything else, print out an error message and exit. Name this script "various.sh"