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 |
What are PIDs?
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 a way to do multilevel if-else’s in shell scripting?
How do you stop a process?
How do you search for a string in a directory with the subdirectories recursed?
How do you find out what’s your shell?
What’s the command to find out today’s date?
How do you search for a string inside a directory?
What’s the command to find out users on the system?
How do you search for a string inside a given file?
How do you define a function in a shell script?
How do you stop all the processes, except the shell window?