Font size
WorksheetsLinux-1 Week 6
Total questions: 16
Worksheet time: 10mins
Correct command to view network-card (NIC) information
ipconfig
ifconfig
ip a
netstat
What can be done with the 'dig' command
The dig command can be used to set network routes
The dig command can be used for tracing packages
The dig command shows network performance statistics
The dig command will perform queries on the DNS server
The dig command is a modern version of the 'ping' command
The 'host' command.....
will return your hostname for your local machine
works with DNS to associate a hostname with an IP address
allows you to change the hostname for your local machine
Will add a static route for a remote host
Correct syntax for a ssh command?
ssh <user>@machinename
ssh -f <user> machinename
ssh -f machinename <user>
ssh machinename@user
what is true about the RSA key fingerprint?
It has a relation with the 'HOST' command
It has a relation with the 'NETSTAT' command
It has a relation with the 'ROUTE' command
It has a relation with the 'SSH' command
How to execute commands as root
use 'su'
use 'sudo'
use 'root'
use 'admin'
What is true about the /etc/passwd file
It defines some account information for user accounts
It contains the (encrypted) passwords for all users
Each line contains information about a single user
It is hashed and not readable
It defines the primary group membership for a user
Correct command to print user and group information
whoami
w
who
id
The 'who' command....
lists users who are currently logged in
will tell you where and when users logged in
It will show previous login sessions
It will display information for a specific account
The 'last' command...
Reads the /var/log/wtmp file all login records
Shows only current login information
Shows previous login sessions as well as current login information
Shows only previous login sessions
Check the correct commands
useradd
adduser
passwd
passmod
How to delete a user and their home directory?
That is not possible in Linux with a single command
search for all the files manually and then delete them
use: userdel -f <user>
use: userdel -r <user>
What will happen if the groupdel command is used to delete a group
Files in the deleted group will become orphaned
Files in the deleted group will be owner by root
Files in the deleted group will be deleted
Nothing will happen
A user has a GID <500, what can be said?
The user is reserved for system use
The user is a natural person
The user is revoked
The user has no password
The getent command can be used to...
Show your password expiration date
Show local and network-based groups
Show system-based entities for groups
Show all system based userID's on your system
How to copy a directory in Linux with all files inside?
use: cp -f <directoryname>
use: cp -d <directoryname>
use: cp -i <directoryname>
use: cp -r <directoryname>
