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’s the command to find out users on the system?
What’s a way to do multilevel if-else’s in shell scripting?
How do you write a for loop in shell?
How do you fire a process in the background?
How do you do Boolean logic operators in shell scripting?
How do you stop all the processes, except the shell window?
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 are PIDs?
How do you find out the current directory you’re in?
How do you count words, lines and characters in a file?
How do you find out your own username?
What’s the command to find out today’s date?