System and Utility Commands Flashcards

1
Q

What is the command to have most of the information about the system?

A

uname -a

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

What is the command to have the user ID and group ID?

A

id

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

What is the command to display the date, time and time zone?

A

date

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

What is the command to display the calendar of the current month?

A

cal

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

What is the command to display the calendar of a particular year?

A

cal [year]

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

What is the command to see how long a command take to execute?

A

time [command to execute]

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

What is the command to display the content of a compressed files?

A

zcat

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

What is the command to connect an external device file system?

A

mount

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

What is the command to exit the current shell?

A

exit

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

What is the command to clear the terminal in Linux?

A

clear

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

What is the command to see how long the machine has been up?

A

uptime

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

What is the command to create a command shortcut?

A

alias [shorcut command]=’[command]’

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

How to remove a shorcut made with alias?

A

unalias [shortcut]

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

What is the command to add a new group?

A

groupadd [group name]

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

What is the command to add a user to a group?

A

usermod -a -G [group name] [username]

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

What is the command to change the owner of a file?

A

chown [username] [file name]

17
Q

What is the command to change the group of a file?

A

chown :[group name] [file name]

18
Q

What is the command to change the owner and group of a file?

A

chown [username]:[group name] [file name]

19
Q

What is the command to change the permission of a file?

A

chmod [permissions] [file name]