what is the command to list files in a directory in UNIX?

Answers were Sorted based on User's Feedback



what is the command to list files in a directory in UNIX? ..

Answer / siva

Try this command

ls -lrt | grep "^-" - for list the only files
ls -lrt | grep "^d" - for list the only directory's

Is This Answer Correct ?    5 Yes 0 No

what is the command to list files in a directory in UNIX? ..

Answer / suitable

ls

Is This Answer Correct ?    6 Yes 2 No

what is the command to list files in a directory in UNIX? ..

Answer / jagadeesh kumar.k[tpgsi]

ls -lrt

Is This Answer Correct ?    4 Yes 2 No

what is the command to list files in a directory in UNIX? ..

Answer / brijmohan

ls : this command is used to see the list of file and
folder in present working directory.

ls -ltr : is used to see the file and folder in present
dirctory in alphabetical order.

Is This Answer Correct ?    0 Yes 0 No

what is the command to list files in a directory in UNIX? ..

Answer / yuvaevergreen

ls | grep "^-"

Is This Answer Correct ?    0 Yes 0 No

what is the command to list files in a directory in UNIX? ..

Answer / peeyush

ls -l |grep '^-'

Is This Answer Correct ?    1 Yes 2 No

what is the command to list files in a directory in UNIX? ..

Answer / p.ashwini

ls command is used to list files in a directory

Is This Answer Correct ?    1 Yes 2 No

what is the command to list files in a directory in UNIX? ..

Answer / sudip

ls -l | grep "^d"

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More Unix Commands Interview Questions

What is a bash command?

0 Answers  


What is the difference between Shell Programming and Shell scripting?

10 Answers   HCL, TCS, Wipro,


what is tar command and what are the different types of tar commands?

5 Answers  


Which command is used to restrict incoming messages?

0 Answers  


How would you change all occurrences of a value using VI?

4 Answers  






What command will change your prompt to myprompt?

0 Answers  


Describe the zip/unzip command using gzip.

0 Answers  


What is unix command line?

0 Answers  


What is the use of the tee command?

0 Answers  


how to find the 51th record of a file containing 100 records in unix.

12 Answers   IBM,


How to redirect standard error to a file?

2 Answers  


What is the output of : $ ps-e $ ps-a commands

5 Answers   IBM,


Categories