WorksheetsLinux Fundamentals
Total questions: 18
Worksheet time: 18mins
Which of the following commands will show you your home directory?
Id
cwd
echo $HOME
print_home
What type of file is firefox.deb located at /root?
Directory
Shell script
Data file
Debian binary package file
You are asked to install a new third-party IDE (integrated development environment ) in the system.
Which directory is the recommended choice for the installation
/root
/home
/opt
/var
Which directory contains the files related to the block devices that can be seen when running the lsblk command?
/media
/devices
/mount
/dev
Which of the following package managers would you use on Centos machine
Yum, rpm
apt-get
apt
dpkg
Which of the following package managers would you use on a debian based distro?
yum
dpkg
rpm
install
Which file is responsible for host file-based DNS resolution?
/etc/resolve.conf
/etc/fstab
/etc/hosts
/etc/passwd
What is the configuration file used for the DNS Server?
/etc/resolve.conf
/etc/passwd
/etc/hosts
/etc/dns/dns.conf
Which order is used currently to resolve an IP address in the system?
DNS Server alone
/etc/hosts file alone
DNS Server then /etc/hosts file
/etc/hosts file then DNS Server
What type of account does ec2-user use?
User account
System account
Service account
System administrator account
Which of the following commands will show you the UID for a user?
Echo $HOME
Cwd
id
Print_home
What level of sudo access does ec2-user have in this system?
Permission to install packages
All Permissions
Permission to remove packages
Permission to reboot the laptop
Which access control file has the encryped password for the users?
/etc/shadow
/etc/passwd
/etc/group
/etc/sudoers
How many maximum partitions (primary or extended ) can an MBR have?
10
2
4
1
Which of the following filesystems does not use a journal
ext3
ext2
ext4
filesystem
The file permission 764 means:
Every one can read, group can execute only and the owner can read and write
Every one can read and write, but owner alone can execute
Every one can read, group including owner can write, owner alone can execute
Every one can read and write and execute
The permission -rwxr–r– represented in octal expression will be
777
666
744
711
Which of the following command can be used to change the user password?
user can’t change the password
passwd
passd
pwd
