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

What are the general commands in using unix os for a beginner?

1121


What are awk commands?

1106


What happens when we execute a unix command?

1097


how to sort the content of the file based on numeric values

1737


What do chmod, chown, chgrp commands do?

1229


What is the use of cut command in unix?

1306


Which command should you use to find the remaining disk space in unix server?

1247


What is the use of sed command in unix?

1155


How do I delete files from command prompt?

1165


What is grep command in unix with examples?

1150


How do you repeat a command in terminal?

1163


How do I use nslookup?

1055


Explain command to display different lines that are found when compare two files?

1118


What does the metacharacter mean?

1097


How do I run a bash script?

1129