Linux Basics Flashcards
What command would you use to create an account?
Sudo useradd name
What command would you use to create a group?
sudo addgroup name
What path would user account files be?
/etc/passwd
What command would you use to delete a user?
sudo deluser –remove-home name
What command would you use to execute “Read” Permissions to a file?
chmod +r filename
What command gives read, write, and execute permissions to a user group?
chmod 777 filename
Write the commands the install and configure a DHCP server.
Write the process for installing and configuring a DNS server using BIND.
What permissions uses 7 as its value?
Read, Write, Execute
What permissions uses 6 as its values?
Read and write
What permissions uses 3 as its value?
Write and execute
What is the following directory used for?
/home
A user’s home directory. A directory where the user’s files are stored.
What is the following directory used for?
/var
Variable data; files that is modified by the user is stored here
Ex. /var/log
What is the following directory used for?
/usr
What is the following directory used for?
/opt
What is the following directory used for?
/sbin
Vital programs needed for the computer system
What is the following directory used for?
/dev
Lists the hardware connected to the computer system
What is the following directory used for?
/usr/bins
Contains executable files the support the user’s system
What is the following directory used for?
/etc
Host-Specific system configuration; contains files that support Time, user passwords, boot time loading scripts,
What command would you use o create an archive?
Tar -c
What does the following command do?
Grep -l
Displays the files that only has the each criteria specified