Linux Commands Flashcards

1
Q

cd

A

change directory

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

ls

A

lists contents of a directory

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

ls -la

A

lists all files and folders in a directory

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

.

A

present working directory

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

..

A

directory above present working directory

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

ls -l

A

lists files and folders excluding hidden

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

-rw-r…

A

file

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

drw-r…

A

directory

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

mkdir

A

creates folder or directory

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

../..

A

up twice

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

dark blue

A

folders and directories

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

light blue

A

links

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

white

A

file

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

green

A

sticky directory

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

mv

A

move (mv source destination)

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

–help

A

lists how to use any command

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

rmdir

A

removes file/directory

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

cp

A

copy (cp source destination)

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

rm

A

remove

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

-f

A

force

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

rm -rf

A

remove +recursive + force (removes directory and any files within it)

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

b*

A

all directories/files starting with b

23
Q

be?

A

all directories/files starting with be and having a letter in the ? place

24
Q

df

A

displays info about disks

25
du
disk usage
26
du ~/downloads
disk usage of items in downloads directory
27
vi
text file editor (no instructions, more powerful) (modal editor)
27
nano
allows you to edit contents of text files (gives instructions)
28
vim
VI improved
29
pico
text editor similar to nano
30
cat
shows file and contents of that file
31
>
redirector (overrites)
32
>>
append symbol
33
find
walks through a file hierarchy to find a file with a particular name (search for a file)
34
grep
globally searches for a regular expression and displays it to the screen (search for content within a file)
35
su
substitute user (switches between users)
36
sudo
super user do (elevates permissions for a single command)
37
useradd
adds new user
38
usermod
modifies users
39
userdel
deletes a user
40
passwd
password options
41
groupadd
creates groups
42
chmod
changes permissions on a file\
43
r
read (value of 4)
44
w
write (value of 2)
45
x
execute (value of 1)
46
chown
changes file ownership
47
chgrp
changes group file ownership
48
ps
summary of current running processes
49
top
processes with assorted memory or based on user
50
ip
information about network
51
ping
tests deliverability from client to destination (indefinite)
52
traceroute
traces path packets take
53
dig
information about a domain name