Commands 0.1 Flashcards

1
Q

What command is used to update the package list in Ubuntu?

A

sudo apt update

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

True or False: The command ‘sudo apt upgrade’ upgrades installed packages to their latest versions.

A

True

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

Fill in the blank: The command ‘sudo apt _______’ is used to install a new package.

A

install

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

What command is used to remove a package in Ubuntu?

A

sudo apt remove

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

Which command is used to search for a package in the repositories?

A

apt search

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

What does the command ‘sudo apt autoremove’ do?

A

It removes unnecessary packages that were automatically installed to satisfy dependencies for other packages and are no longer needed.

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

True or False: The command ‘sudo apt clean’ clears out the local repository of retrieved package files.

A

True

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

What command can you use to check the disk usage of your file system?

A

df -h

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

What is the command to display the current working directory?

A

pwd

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

Which command is used to change directories in Ubuntu?

A

cd

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

What command is used to list files and directories in the current directory?

A

ls

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

True or False: The command ‘mkdir’ is used to delete a directory.

A

False

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

What command do you use to create a new directory?

A

mkdir

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

Fill in the blank: The command ‘rm -______’ is used to remove directories and their contents recursively.

A

r

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

What command is used to copy files or directories?

A

cp

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

Which command is used to move or rename files and directories?

A

mv

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

True or False: The command ‘touch’ is used to create an empty file.

A

True

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

What command can be used to display the contents of a text file?

19
Q

What is the command to view the manual of a command?

20
Q

Fill in the blank: The command ‘______ -l’ provides a detailed list of files and directories.

21
Q

What command is used to show the system’s IP address?

22
Q

True or False: The command ‘shutdown’ is used to restart the system.

23
Q

What command is used to restart the Ubuntu system?

A

sudo reboot

24
Q

What command is used to shut down the Ubuntu system?

A

sudo shutdown

25
Fill in the blank: To view running processes, you can use the command '______'.
ps
26
What command allows you to kill a process by its PID?
kill
27
True or False: The command 'top' provides a dynamic view of system processes.
True
28
What command is used to find out the current system uptime?
uptime
29
Fill in the blank: The command '______ -a' shows all users currently logged into the system.
who
30
What command is used to change the owner of a file?
chown
31
Which command is used to change the permissions of a file?
chmod
32
True or False: 'sudo' allows a permitted user to execute a command as the superuser or another user.
True
33
What command is used to check the available memory on the system?
free -h
34
Fill in the blank: The command '______' is used to display system information.
uname
35
What command is used to install software from a .deb file?
sudo dpkg -i filename.deb
36
What command is used to display network configuration details?
ifconfig
37
True or False: The command 'history' displays a list of previously executed commands.
True
38
What command is used to edit files in Ubuntu?
nano
39
Fill in the blank: The command '______' is used to display the last lines of a file.
tail
40
What command can you use to search for a string in a file?
grep
41
What command is used to display the current date and time?
date
42
True or False: The command 'clear' is used to clear the terminal screen.
True
43
What command is used to create a symbolic link to a file?
ln -s