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...


Is there any command in Unix, other than:ls, to list the
files in a directory?
The answer will be highly appreciated...

Answers were Sorted based on User's Feedback



Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / dina

You can use find . -type d

Is This Answer Correct ?    3 Yes 5 No

Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / dillesh

we can also use "dir" command to list the files

Is This Answer Correct ?    1 Yes 5 No

Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / dhina

Hi Yankee,

Login files are.

/etc/profile
$HOME/.profile

You can edit the login files from root login. You can add
the alias in login files like below,

alias ll='ls -l'
alias lla='ls -la'
alias ltr='ls -ltr'
alias llh='ls -l . | egrep htm\|html'
alias c=clear
alias rm='rm -i'

After, you do so, log out your current session, and relogin.

Is This Answer Correct ?    2 Yes 8 No

Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / annhaq

This is the substitue for 'ls' echo $*

Note: You can not answer with an alias in interview this
type of question are asked to confuse the person on hot sit
be carefull.

Is This Answer Correct ?    1 Yes 12 No

Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / dhina

Hi Yankee,

Your question is little strange to answer. You can add alias
for ls in linux boot files and use that alias instead of
using ls command.

Is This Answer Correct ?    0 Yes 14 No

Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / anil

ls -ltr,ls -ltrh,ls-ld

Is This Answer Correct ?    5 Yes 25 No

Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / dhina

ls /directoryname

Is This Answer Correct ?    3 Yes 24 No

Post New Answer

More Unix Commands Interview Questions

how unix kernel distinguishes between a normal file and device file ?

7 Answers   Google, IBM, McAfee, Vodafone,


Can you write a command to erase all files in the current directory including all its sub-directories?

1 Answers  


What are the differences among a system call, a library function, and a unix command?

0 Answers  


distinguish between paging and swapping?

3 Answers   Infosys,


What are awk commands?

0 Answers  


Which unix command to make a new directory?

0 Answers  


What is rmdir command?

0 Answers  


Which command is used to restrict incoming messages?

0 Answers  


How would you find the size of a file or directory?

1 Answers  


What is an Unix command to convert HEX value to ASCII value located in any flat file.

2 Answers  


How to delete a directory containing files and folders?

3 Answers  


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

0 Answers  


Categories