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 |
what are special characters and explain how does text varies by the usage of single quotes,double quotes and back quotes?
Write a shell script to get current date, time, user name and current working directory.
How would you compare the strings in a shell script?
What are the advantages of shell scripting?
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
Explain about shebang?
What command needs to be used to take the backup?
What are environment variables?
Is shell scripting a language?
write a program to display all the files from the current directory which are created in particular month
How does shell scripting work?
Explain about return code?