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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hw will u use awk in replacing cahrs and files

2734


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

799


What do chmod, chown, chgrp commands do?

638


What is the search command in unix?

603


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

642






What does sed command do in unix?

566


What are awk commands?

582


Differentiate cmp command from diff command.

586


What is {} in find command?

584


What does the command ' $who | sort –logfile > newfile' do?

770


What is difference between grep and find command in unix?

579


Which command is used to delete all files in the current directory and all its sub-directories?

665


What is .sh file?

622


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

593


What is the comma to show the space allocation of files?

560