1102 1.11 Linux Features and Tools Flashcards
What does the command ls do in Linux?
Lists the contents of a directory.
How can you display the current directory in Linux?
pwd (Print Working Directory).
What is the command to move or rename a file in Linux?
mv
How do you copy files in Linux?
cp
What command would you use to delete files in Linux?
rm
How can you change file permissions in Linux?
chmod
How do you change the owner of a file in Linux?
chown
What command provides elevated privileges in Linux?
The sudo command.
Which command is used to install packages in Ubuntu?
apt-get
Which command is used to manage packages in Red Hat-based systems?
yum
How can you view network configuration details in Linux?
Use the command ip.
What is the command to view disk usage and free space in Linux?
df
How can you search inside files for a specific string in Linux?
Use the command grep.
What command lists currently running processes in Linux?
ps.
How do you display a manual page for a command in Linux?
Use the command man.