1102 1.11 Linux Features and Tools Flashcards

1
Q

What does the command ls do in Linux?

A

Lists the contents of a directory.

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

How can you display the current directory in Linux?

A

pwd (Print Working Directory).

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

What is the command to move or rename a file in Linux?

A

mv

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

How do you copy files in Linux?

A

cp

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

What command would you use to delete files in Linux?

A

rm

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

How can you change file permissions in Linux?

A

chmod

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

How do you change the owner of a file in Linux?

A

chown

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

What command provides elevated privileges in Linux?

A

The sudo command.

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

Which command is used to install packages in Ubuntu?

A

apt-get

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

Which command is used to manage packages in Red Hat-based systems?

A

yum

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

How can you view network configuration details in Linux?

A

Use the command ip.

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

What is the command to view disk usage and free space in Linux?

A

df

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

How can you search inside files for a specific string in Linux?

A

Use the command grep.

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

What command lists currently running processes in Linux?

A

ps.

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

How do you display a manual page for a command in Linux?

A

Use the command man.

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

What command provides a dynamic real-time view of running processes?

A

The command top.

17
Q

Which command is used to find files in a directory hierarchy?

A

find.

18
Q

How do you perform a DNS lookup in Linux?

A

Use the command dig.

19
Q

What does the cat command do?

A

Concatenates and displays files.

20
Q

How can you create and edit text files in Linux?

A

Use the editor nano.

21
Q

What is a best practice for managing backups on Linux?

A

Utilize tools like tar or rsync for systematic backups.

22
Q

Why should you install antivirus software on Linux?

A

To protect against malware and viruses, despite Linux’s robust security.

23
Q

What is an important routine maintenance practice for Linux systems?

A

Regularly apply updates and patches.

24
Q

What tool in Linux is equivalent to Windows SMB for file sharing?

A

Samba, which facilitates file and print services across network systems.

25
Q

How do you ensure continuous file synchronization in Linux?

A

Utilize the rsync command for syncing files between directories or systems.

26
Q

What command line tool is essential for Linux administration and scripting?

A

Shell or Terminal.

27
Q

What command adds or updates packages using RPM in Linux?

A

yum for Red Hat-based distributions.

28
Q

How can you monitor network traffic in real-time on Linux?

A

Install and use Wireshark via sudo apt-get install wireshark.

29
Q

What command modifies the mode of files to set permissions in Linux?

A

chmod, which alters file access permissions.

30
Q

How do you view the amount of used and free disk space in a readable format in Linux?

A

Use df -h to display disk space in human-readable format.