what is the use of "test" command in unix?

Answer Posted / manikantan t s

test is very useful on condition checking.

following are the most used options

-r,-w,-x,-f,-d,-eq,-gt,-ge,-lt,-le,-ne,=,!=,-z

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who invented grep?

737


What does #!/ Bin sh do?

670


Explain ‘library functions’ with respect to unix commands?

702


What command is used to check the current users?

681


What is pipe command in unix?

785






How to use grep command to list find the records of a file containing 10 different strings?

729


Write a command to kill the last background job?

702


What is the use of tee command?

651


How to find $ai_serual resolved path by using unix

1140


What is the pipe command?

680


What is the comma to display different lines that are found when compare two files?

688


Explain command to view process running?

699


Write a command that will display files in the current directory, in a colored, long format.

781


What is the difference between cat command and more command?

677


What difference between cmp and diff commands?

819