Font size
WorksheetsLinux-2
Total questions: 15
Worksheet time: 11mins
What is the name of the file in which details of user accounts are stored?
/etc/uac
/etc/accounts
/etc/passwd
/etc/shadow
What is the name of the file that stores salted/hashed versions of user passwords for authentication?
/etc/uac
/etc/passwd
/etc/.pws
/etc/shadow
What file stores information about groups on Linux systems?
/etc/group
/etc/groupon
/etc/members
What file is used to give user's access so that they can utilize the sudo command?
/etc/passwd
/etc/sudoers
/etc/shadow
/home/kali
How would you show a list of files and directories that are inside the current directory?
cd
ls
cat
head
________ is the command used to create new directory/folder.
dir
mkdir
cd
pwd
what is the Linux command segment used to append data to the "s.txt" file ?
echo "Hello Kali!"
echo "Hello Kali!" > s.txt
echo "Hello Kali!" >> s.txt
ls&passwd
What is the name of a Linux command used for count the number of lines in a file ?
ls a.txt
cat a.txt
wc -l a.txt
What can be done with the 'Shebang'
It's a command for on the prompt
Shutdown your Linux System
Controle the command interpreter in a script
End a bash script
What is the most used compression-command in Linux
7zip
tar
gzip
zip
What can be done with the pipe (|) command?
run a second command only if the first one failed
run a second command only if the first command was succesfull
set an exit-code
send the output of one
send the output of one command to another
How to redirect the output from a cat-command to a file 'testfile.txt'
cat filename > testfile.txt
cat filename | testfile.txt
cat filename&testfile.txt
cat filename&&testfile.txt
What must be done before a script can be executed?
Make the file executable using chmod u+x
Add the shebang in the first line of the script
Place the script in an executable-scripts directory like /bin
Compile the script
What is your favorite text editor in Linux?
Which permission amongst the following allows only groups to read and execute the file and denies all user as well as others to read, write and execute ?
rwxrwx---
rw-r-x--x
---r-x---
r-x-w-rwx
