Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Is command prompt unix?

1161


What is the use of sed command in unix?

1214


What does find command return in unix?

1158


Explain the steps that a shell follows while processing a command.

1237


Which command is used to find whether the system is 32 bit or 64 bit?

1153


Who invented grep?

1164


What is unix command line?

1263


Which command will print your home directory on screen?

1086


What does the command '$ls | wc –l > file1' do?

1235


Which command is used to create a directory?

1170


What is the use of cut command in unix?

1377


What do chmod, chown, chgrp commands do?

1291


What is the significance of the 'tee' command?

1202


What is the difference between cat and more command?

1301


How do you repeat a command in terminal?

1230