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 is the command to compare two files in unix?
How can we "forked" process in UNIX? How then recognize in any of the branches we?
How to get the operating system's information in unix?
Where LOG fiels resides in AIX and pls tel me how to remove the log file
What is the use of pipes?
fork in unix ?
What is grep r?
What is difference between grep and find command in unix?
What is the difference between Shell Programming and Shell scripting?
10 Answers HCL, TCS, Wipro,
Explain the steps that a shell follows while processing a command.
How to check the flavor of UNIX?
How do I search for a file in unix command?