Centos 7 Common Commands Flashcards

1
Q

sudo

A

Runs a command as Super User

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

yum

A

Lets you install software and packages

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

ls

A

List Directory Contents

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

cd

A

Change Directory

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

pwd

A

Display pathname

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

mv

A

Rename or move files

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

mkdir

A

Make Directory

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

rm

A

Delete files or folders

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

who

A

Checks who is logged on

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

systemctl

A

Manages OS services and start-ups

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

firewall-cmd

A

CentOS Firewall

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

nano

A

Text editor

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

tar

A

Unzips tar archives(+more)

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

unzip

A

Unzips an archived folder

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

chmod

A

Change file permissions

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

chown

A

Changes owner of a file or folder

17
Q

Python -m SimpleHTTPServer

A

Creates a simple web page for the current working directory over port 8000.

18
Q

mtr

A

A command which is a combination of ‘ping’ and ‘traceroute’ command

19
Q

Ctrl+x+e

A

This key combination fires up, an editor in the terminal, instantaneously.

20
Q

nl

A

Outputs the content of text file with lines Numbered.

21
Q

shuf

A

Randomly selects line/file/folder from a file/folder.

22
Q

ss

A

Outputs Socket Statistics.

23
Q

Last

A

Want to know history of last logged in users? This command comes to rescue here.

24
Q

curl ifconfig.me

A

Shows machine’s external IP Address.

25
Q

tree

A

Prints files and folders in tree like fashion, recursively.

26
Q

Pstree

A

prints running processes with child processes, recursively.