Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
The problem statement, all variables and given/known data:
what is the output of ls -lm and ls -ml? which option takes procedures?
what is the output of ls -d?
Relevant commands, code, scripts, algorithms:
ls -lm gives a list of files and directories with comma seperated a linefull.
ls -ml will give long list of dirs and files
ls -d will print directories
The attempts at a solution (include all code and scripts):
my problem in understanding the second part of question. i.e. which option takes procedures? i asked many among my friends. but in vein.
Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
Indira Gandhi National Open University, Trivandrum, India, Prof. Arun, MCS-022
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
sir,
thank you very much. the question they put is which option takes procedures. me also agree with you. that should be precedence. thats what made the confusion.
Still, looks like a lapsus... I would call the teacher to clarify...The sentence does not make much sense with "procedure" (but it could be because TGIF!)
ls -d is an interesting command. It will always output the answer . (i.e. the current working directory). This is because the -d parameter tells ls to not expand any directories it encounters (and that includes the current working directory).
The commmand ls -d * (or better ls -lad * ) is really useful because it outputs the contents of the current directory (files, directories, whatever) without expanding any subdirectories it encounters in the current directory.
To stress. ls -d does NOT just select directories. There is no ls command which filters directories, files or whatever. Use the find command for that.