How do you test for file properties in shell scripts?
Answer / chaitanya
-s filename tells you if the file is not empty, -f filename tells you whether the argument is a file, and not a directory, -d filename tests if the argument is a directory, and not a file, -w filename tests for writeability, -r filename tests for readability, -x filename tests for executability
| Is This Answer Correct ? | 1 Yes | 0 No |
How do you list currently running process?
What’s a way to do multilevel if-else’s in shell scripting?
How does a case statement look in shell scripts?
How do you search for a string inside a directory?
How do you count words, lines and characters in a file?
How do you find out the number of arguments passed to the shell script?
How do you stop a process?
How do you find out about all running processes?
How do you fire a process in the background?
How do you write a while loop in shell?
I am configuring my anaconda file in linux, i want to use as kickstart file, in post installation how can i edit file or change the content of file and save it.
What’s the command to find out users on the system?