Linux 01 Flashcards

1
Q

show date

A

date

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

show calendar

A

cal

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

free disk space

A

df

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

free memory

A

free

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

exit linux

A

exit

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

current working directory

A

pwd

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

change directory

A

cd

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

list contents of directory

A

ls

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

change directory to home directory

A

cd

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

change directory to previous

A

cd -

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

change directory to specific user name

A

cd [user]

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

determine file type

A

type

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

view file contents

A

less (used to me “more”)

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

list files long output

A

ls -l

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

list sort by modification time

A

ls -lt

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

list sort in reverse order

A

ls -lt –reverse

17
Q

list with directory

A

ls -d

18
Q

list sort by file size

A

ls -S

19
Q

list sort by mod time

A

ls -t

20
Q

less: move to end

A

G

21
Q

less beginning of text file

A

1G or g

22
Q

less search for characters

A

/[characters]

23
Q

less quit

A

q

24
Q

directory for storage devices

A

/etc/fstab

25
Q

copy

A

cp

26
Q

move

A

mv

27
Q

make direectory

A

mkdir

28
Q

remove files or directories

A

rm

29
Q

create links hard or symbolic

A

ln

30
Q

wilcdard anything

A

*

31
Q

wildcard single character

A

?

32
Q

make a directory

A

mkdir directory

33
Q

make multiple directories

A

mkdir dir1 dir2 dir3

34
Q

copy one file to another

A

cp item1 item2