How do you test for file properties in shell scripts?
Submitted by: Administrator-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
Submitted by: Administrator
Submitted by: Administrator
Read Online Shell Scripting Job Interview Questions And Answers
Top Shell Scripting Questions
☺ | How do you do Boolean logic operators in shell scripting? |
☺ | How do you stop all the processes, except the shell window? |
☺ | How do you test for file properties in shell scripts? |
☺ | How do you write a while loop in shell? |
☺ | What are PIDs? |
Top Operating System (OS) Categories
☺ | RTOS Interview Questions. |
☺ | Windows 7 Interview Questions. |
☺ | MAC Operating System Interview Questions. |
☺ | Disk Operating System (DOS) Interview Questions. |
☺ | Shell Scripting Interview Questions. |