Navigation Flashcards

navigate the file system

1
Q

print name of current working directory

A

pwd

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

change directory

A

cd

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

list directory contents

A

ls

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

change the directory to /usr/bin

A

cd /usr/bin

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

change the directory to parent directory of /usr/bin which is /usr

A

cd /usr or cd ..

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

change the directory from /usr to /usr/bin

A

cd /usr/bin or cd ./bin

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

change the directory to home directory (short cut)

A

cd

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

change directory to previous directory(short cut)

A

cd -

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

change the directory to bob home directory

A

cd ~bob (cd ~username)

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

determine file type

A

file

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

view text file content

A

less filename

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

list a specify directory /usr

A

ls /usr

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

list multiple directory (home and usr)

A

ls ~ /usr

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

list the information of file in current directory (long format)

A

ls -l

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

list all the file include hidden files

A

ls -a

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

list the directory itself

A

ls -d

17
Q

append an indicator character to the end of each listed name for classify when listing

A

ls -F

18
Q

In long format listings, display file sizes in human readable

A

ls -l -h

19
Q

listing in reverse order sorted by file size or modification time

A

ls -s -r or ls -t -r

20
Q

how to check the file format of picture.jpg including some description on it

A

file picture.jpg (file filename)

21
Q
A