|
INTERVIEW QUESTIONS
OPERATING SYSTEMS
UNIX COMMANDS
DETAILS
Question: What is the use of the command "ls -x chapter[1-5]"
Answer: ls stands for list; so it displays the list of the files that starts with 'chapter' with suffix '1' to '5', chapter1, chapter2, and so on.
|
|
|
Category |
Unix Commands Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9951 users |
Added on |
10/25/2009 |
Views |
73656 |
Rate it! |
|
|
Question:
What is the use of the command "ls -x chapter[1-5]"
Answer:
ls stands for list; so it displays the list of the files that starts with 'chapter' with suffix '1' to '5', chapter1, chapter2, and so on. Source: CoolInterview.com
To add something to above answer,
ls -x chapter[1-5]
it will show all the files with chapter1, chapter2 and so on but only with execute permission. Source: CoolInterview.com
Answered by: anshuman | Date: 2/6/2010
| Contact anshuman
same answer but -x option will display the chapter1 to chapter5 files in columns. Source: CoolInterview.com
Answered by: anshuman | Date: 2/6/2010
| Contact anshuman
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Is it possible to restrict incoming message?
|
View Answer
|
|
Is it possible to create new a file system in UNIX?
|
View Answer
|
|
What will the following command do?
|
View Answer
|
|
Write a command to display a file’s contents in various formats?
|
View Answer
|
|
Which command is used to delete all files in the current directory and all its sub-directories?
|
View Answer
|
|
Write a command to kill the last background job?
|
View Answer
|
|
What is the difference between cat and more command?
|
View Answer
|
|
What is the use of ‘grep’ command?
|
View Answer
|
|
What difference between cmp and diff commands?
|
View Answer
|
|
Explain the steps that a shell follows while processing a command.
|
View Answer
|
|
How is the command “$cat file2 “ different from “$cat >file2 and >> redirection operators ?
|
View Answer
|
|
Which of the following commands is not a filter man , (b) cat , (c) pg , (d) head
|
View Answer
|
|
What does the command “$ls | wc –l > file1” do?
|
View Answer
|
|
What does the command “ $who | sort –logfile > newfile” do?
|
View Answer
|
|
What is the significance of the “tee” command?
|
View Answer
|
|
Explain the following commands.
|
View Answer
|
|
Construct pipes to execute the following jobs.
|
View Answer
|