Font size
WorksheetsLinux permission and file system
Total questions: 14
Worksheet time: 7mins
Which command allows the user to set permissions for files and directories?
chgrp
chmod
umask
su
Which of the following is an example of Absolute mode?
chmod a=r filename
chmod filename
chmod
chmod 757 filename
Which command displays the permissions for files and directories?
ls -a
ls -r
ls -l
ls
Which command is used to change the user or group of a file or directory?
chown
chmod
umask
su
Which statement reflects the principle of least privilege?
Give a small number of users the most amount of access to all files.
Give no access to any files for a large number of users, and give only the network engineer access to all files.
Give the least number of users the least amount of file access first, and grant more permissions only when the user has a need.
Give access to all groups, and each group can decide which individual has access to each file.
A Linux administrator downloaded a file from the internet. The administrator believes that the file is corrupted. Which Linux command can the administrator use to check whether a file is corrupted?
grep
cksum
find
diff
A Linux administrator must compare and display the outputs of two different files. Which Linux command can the administrator use to compare the file outputs?
diff
df
find
hash
Which statement about symbolic links is true?
Symbolic links can’t link to any directory.
Symbolic links point to actual files in any directory.
Symbolic links point to a hard link, instead of the actual file.
If a symbolic link links to a file and the file is deleted, the link will still work.
Which option for the tar command enables a user to create a tarball?
-c tarball.tar
-xf tarball.tar
-v tarball
-cvf tarball.tar
Which statements about Linux file names are true? (Select TWO.)
File names are case sensitive.
Multiple files with the same name can exist in a directory.
File names can contain spaces.
Extensions are optional.
Extensions are automatically mapped to applications.
Which directory contains a user’s personal files by default?
/dev
/home
/etc
/var
Which command displays the absolute path to the user’s current location in the file system?
cat
cp
pwd
tail
Which command changes the current working directory to a different directory?
mv
mkdir
rm
cd
A systems administrator must see a list of all files in the /var/log directory in long format. Which command and option should the administrator use?
cat -names /var/log
cd /var/log
ls -la /var/log
/var/log -la -ls
