Commands Flashcards

Learning commands

1
Q

Pwd

A

Print working directory

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

Ls

Ls -la

A

Long listing

Long format ,show hiding files

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

Man

A

Manual

Shows different flags or arguments to use

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

Cd
Cd -
Cd ..
Cd ../../

A
Change Directory
Alone cd takes to home directory
Cd - goes back one time
Cd .. goes up a directory
Cd ../../ goes up multi directory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Su
Sudo
Sudo su

A

Switch user
Super user do (use to execute command with root privileges)
Gives root privileges

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

Useradd

Passwd

A

Adds user

Adds password

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

Echo
Echo “neo” > linux.txt
Echo “neo”&raquo_space; linux.txt

A

Echos use to display line of text or string
Adds neo to linux.txt
Adds neo to the end of linux.txt

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

Cp

Mv

A

Copy

Cut

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

Cat

A

Reads files (prints it out to the terminal)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
Touch
Mkdir
Rm
Rmdir
Rm -r
A
Creates empty file
Make directory
Removes files
Removes directories
Removes files inside and parent directories
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Less

A

Another command to view files

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

Head -n # [file path]

Tail -n # [file path]

A

Head shows number of the lines from top

Tail shows number of the line from bottom

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

Grep

A

Finds everything you find :)

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

Nano

Vim

A

Text editors

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

Chmod

A

Changing permission on a file for example making a file executable.

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

Zip
Zip -er [zip name] [folder or file]
Unzip

A

Zips the files
Creating an encrypted zip file
Unzips