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 stop all the processes, except the shell window?
What’s the command to find out today’s date?
How do you find out the number of arguments passed to the shell script?
How do you do number comparison in shell scripts?
How do you list currently running process?
How do you find out about all running processes?
How do you define a function in a shell script?
What’s a way to do multilevel if-else’s in shell scripting?
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.
How do you fire a process in the background?
How do you stop a process?
How do you search for a string inside a given file?