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
Answer / dillesh
we can also use "dir" command to list the files
| Is This Answer Correct ? | 1 Yes | 5 No |
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 |
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 |
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 |
What are reported commands?
how to sort the content of the file based on numeric values
What does grep v do?
What command is used to check the current users?
what is the advaantage of each user having its own copy of the shell?
How do I use grep to search for a file?
Can you write a command to erase all files in the current directory including all its sub-directories?
why metadb requires a seperate slice to create Solaris volume manager
How do you create a file in UNIX
36 Answers Accenture, EMG, Nokia, QA, TD,
Why we are using UNIX OS when we are doing the testing in our application?
How do you repeat a command in terminal?
What is time_t?