ls Flashcards

(17 cards)

1
Q

How to list the contents of the home directory of the user logged in?

A

ls ~

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to list contents of multiple directories?

A

ls dir1 dir2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

List the content in long format

A

ls -l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

list the content in long format and also sort by time

A

ls -lt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Reverse the long list ordered by time

A

ls -lt –reverse

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to give option and long option in Linux command respectively

A
  • and – resp
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the general format of Linux command

A

Command -option arguments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Option to list all the files including hidden

A

-a or –all

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Option to list all files except . and ..

A

-A or –almost-all

Means almost all

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Option to list directory itself

A

-d or – directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Option to list with classification

A

-F or – classify

Example: appends / for directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Option to list in human readable for

A

-h

File size in human readable format

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Option to list in long format

A

-l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Option to reverse the list

A

-r or – reverse

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Option to sort the list by file size

A

-S

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Option to sort by time

17
Q

Option for colour