Font size
WorksheetsLinux Essentials Quiz 2
Total questions: 14
Worksheet time: 11mins
Which of the following characters in a shell indicates the shell is running with superuser (root) privileges?
~
#
$
>
Which symbol can be used with the cd command to change the current directory to the current user's home directory?
~
#
$
>
Which character starts a comment line in a shell script file?
~
#
$
>
When creating a bash script, which of the following must be placed in the first line to make it executable?
~!/tmp/exe
&!/etc/sh
$!/var/log
#!/bin/bash
Which of the following linux commands will display processes that are running on the operating system? (Choose two)
ps aux
cat
top
powershell
You want to view the last tools installed by a user with the apt command. Which file contains this information?
/var/log/apt/history.log
/etc/apt/sources.list
/var/lib/apt/lists/installed_packages
/usr/share/apt/recent_installs
Instead of using password-based authentication, which option is more secure for connecting to a remote server?
Telnet
Open authentication
Rsa-based authentication
Key-based authentication
Which tool or protocol allows us to establish key-based authentication for connecting to a remote server?
SSH key pairs
TLS key
SNMP keys
FTP
How can you create SSH key pairs with the RSA type and 4096 bits?
ssh-create -t rsa -b 4096
ssh-generate -rsa -b 4096
ssh rsa 2048
ssh-keygen -t rsa -b 4096
When generating SSH key pairs using ssh-keygen, which files are created for authentication purposes?
auth_rsa and auth_rsa.pub
private_key and public_key
id_rsa and id_rsa.pub
ssh_private and ssh_public
Which key is shared with a remote server to establish secure communication using SSH?
Session key
Public key
Private key
Symmetric key
Which of the following is the result of "ls -l" command for the "test.txt" file?
"test.txt" is a regular file.
It is owned by the user "player", and the group "team" has access to it.
The file is empty (0 bytes).
The file can be read by anyone but can only be modified by the owner, "player."
The file's last modification time was on February 5th at 10:43 AM.
drw-r--r-- 1 team player 0 Feb 5 10:43 test.txt
-r--r--rwx 1 player team 0 Feb 5 10:43 test.txt
-rw-r--r-- 1 player team 0 Feb 5 10:43 test.txt
-rw-r--r-- 1 other other 0 Feb 5 10:43 test.txt
A special permission is commonly used for /tmp directory in a linux file system.
Because it is a shared directory where all users can write, but they should not delete or modify each other’s files. Which of the following is the special permission for /tmp directory?
sticky bit
setUID
setGID
chmod
The output of "ls -ld /tmp" command is as follows:
drwxrwxrwt 13 root root 4096 Feb 25 04:00 /tmp
Which parameter indicates that the sticky bit is set on the /tmp directory?
d
t
root
w
