what is the command to list files in a directory in UNIX?
Answer Posted / 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 |
Post New Answer View All Answers
What will the following command do?
What are the commands in UNIX to list the files in a Directory?
What is s and g in sed command?
Which unix command lists files/folders in alphabetical order?
What does touch command do in unix?
How to display no of records in oracle using unix command?
What is a bash command?
How do I run a bash script?
What is the use of the tee command?
Is ‘du’ a command? If so, what is its use?
What does the command ' $who | sort –logfile > newfile' do?
Which command is used to copy files?
What is a command and examples?
What is grep and how do you use it?
What are filter commands in unix?