Linux file execution permission
Linux file execution permission
Questions
Which of the following folders is a regular user's home directory?
- /home/user
- /usr/user
- /root
- /user
Which of the following commands shows the full path to an executable in the current environment?
- ls -l
- pwd
- cat
- which
Which directory does cd - navigate to?
- Previous directory
- Home directory
- Parent of the current directory
- Root directory
How do you write to a file in nano?
- CTRL+O
- CTRL+X
- CTRL+W
- CTRL+Q
What is GRUB primarily used for?
- Linux authentication
- Linux networking
- Linux boot selection
- Linux permissions
What does the echo command do?
- Sends argument to stdout
- Sends argument to stdin
- Sends argument to stderr
- Edits a file
What does it mean when a directory listing line has a permissions list that starts with a d, such as drwxrwxrwx?
- It is an executable file
- It is a directory
- It is a read-only file
- It is a hidden file
By default, nginx serves HTTP content on which port?
- 8080
- 80
- 443
- 8443
What is the sudo command used for?
- To run commands as a simple user
- To run commands as a privileged user
- To create a super-user
- To shut down the system
Which of the following is the right command to secure copy all current dir's PDF files to the user’s remote home folder?
- scp all.pdf [email protected]:/home/user
- scp *.pdf [email protected]:/home/user
- scp ?.pdf [email protected]:/home/user
- scp *.pdf [email protected]:/var/log
Which of the following protocols is secure?
- SCP
- FTP
- HTTP
- Telnet
Which open-source software is used in Linux to provide FTP based services?
- vsftpd
- apache
- Samba
- nginx
Which of the following files stores hashed passwords in Linux?
- /etc/shadow
- /etc/passwd
- /etc/hosts
- /tmp/password
Which file is edited in Linux to permanently configure a networking device?
- /etc/network/interfaces
- /etc/network.conf
- /etc/network/network.conf
- /etc/network/interfaces.conf
Which command would assign the permissions drwxrwxr-x to the temp directory?
- chmod 775 temp
- chmod 700 temp
- chmod 755 temp
- chmod 766 temp
What type of tool is apt?
- System monitor
- Process manager
- Text editor
- Package manager
What type of users can read the /etc/passwd file?
- Any user
- Only superusers
What command will output the last five lines of a file called test.txt?
- tail test.txt
- tail -n 5 test.txt
- head -n 5 test.txt
- less text.txt
What is /var the name of?
- Hidden file
- Configuration file
- Directory
- Read-only file
Which command changes file ownership?
- chmod
- chown
- run
- set