NEW
Font size
WorksheetsLinux File Permissions & Text Editors Quiz
Total questions: 30
Worksheet time: 15mins
What command is used to change file permissions in Linux?
chown
chmod
passwd
ls
In Linux, which of the following is NOT a file permission type?
Read
Write
Modify
Execute
Which command displays a user’s identity and group information?
id
whoami
pwd
su
If a file has permissions set to 755, what does the groups and world can do?
Read and write
Read and execute
Only execute
No access
What is the numeric equivalent of the permission rwxr--r--?
744
644
755
700
What does the command chmod 777 filename do?
Allows only the owner to read, write, and execute
Allows everyone full access
Restricts all access
Gives read and execute access only
What command changes the owner of a file?
chown
chmod
passwd
ls -l
What does the umask command do?
Sets the default file permissions
Changes file ownership
Lists file permissions
Modifies user accounts
What is the symbolic notation for removing write permission from group?
g-w
o-w
g+x
u-w
What does the command chmod u+x script.sh do?
Removes execute permission from the user
Adds execute permission for the user
Removes all permissions for the user
Adds write permission for the user
Which file type is represented by d in the output of ls -l?
Regular file
Directory
Symbolic link
Block device
What happens when you set file permissions to 600?
Only the owner can read and write
Everyone can read and write
Only the owner can execute
The file is made public
What does chgrp do in Linux?
Changes file permissions
Changes group ownership
Changes user passwords
Lists directory contents
If a directory has rwxr-xr-x permissions, what does it mean?
Everyone has full access
Only the owner has full access, others can read and execute
Others cannot access the directory
The directory is private
What is the purpose of the passwd command?
Change file permissions
Change user password
Display user identity
Delete a file
Which Linux text editor is beginner-friendly?
nano
vi
emacs
vim
How do you save and exit in vi editor?
Ctrl+X
Esc :wq
Shift+Q
Alt+F4
Which of the following is NOT a mode in vi editor?
Command Mode
Insert Mode
Replace Mode
Terminal Mode
What command opens a file in vi editor?
nano filename
vi filename
gedit filename
vim -w filename
How do you enter Insert Mode in vi?
Press Esc
Press i
Press x
Press Ctrl+I
What does dd do in vi editor?
Deletes the current line
Saves the file
Moves to the next line
Copies the current line
How do you undo the last change in vi?
Ctrl+Z
u
:undo
Ctrl+U
How do you delete a single character in vi?
x
dd
yy
d0
What does the yy command do in vi?
Deletes a line
Copies a line
Pastes a line
Undoes a change
Which key moves the cursor to the beginning of the current line in vi?
0
$
G
H
What is the main difference between vi and nano editors?
vi is GUI-based; nano is text-based
vi is command-driven; nano is menu-driven
vi does not allow text editing
nano cannot be used in Linux
Which LibreOffice application is used for spreadsheets?
Writer
Impress
Calc
Base
Which LibreOffice tool is used for database management?
Draw
Calc
Base
Math
Which command is used to search for text in vi editor?
/text
find text
Ctrl+F
search text
What is the purpose of LibreOffice Impress?
To create and edit spreadsheets
To edit images
To create presentations
To manage databases
