Linux file execution permission

Linux file execution permission

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following folders is a regular user's home directory?

  1. /home/user
  2. /usr/user
  3. /root
  4. /user
Question 2 Multiple Choice (Single Answer)

Which of the following commands shows the full path to an executable in the current environment?

  1. ls -l
  2. pwd
  3. cat
  4. which
Question 3 Multiple Choice (Single Answer)

Which directory does cd - navigate to?

  1. Previous directory
  2. Home directory
  3. Parent of the current directory
  4. Root directory
Question 4 Multiple Choice (Single Answer)

How do you write to a file in nano?

  1. CTRL+O
  2. CTRL+X
  3. CTRL+W
  4. CTRL+Q
Question 5 Multiple Choice (Single Answer)

What is GRUB primarily used for?

  1. Linux authentication
  2. Linux networking
  3. Linux boot selection
  4. Linux permissions
Question 6 Multiple Choice (Single Answer)

What does the echo command do?

  1. Sends argument to stdout
  2. Sends argument to stdin
  3. Sends argument to stderr
  4. Edits a file
Question 7 Multiple Choice (Single Answer)

What does it mean when a directory listing line has a permissions list that starts with a d, such as drwxrwxrwx?

  1. It is an executable file
  2. It is a directory
  3. It is a read-only file
  4. It is a hidden file
Question 8 Multiple Choice (Single Answer)

By default, nginx serves HTTP content on which port?

  1. 8080
  2. 80
  3. 443
  4. 8443
Question 9 Multiple Choice (Single Answer)

What is the sudo command used for?

  1. To run commands as a simple user
  2. To run commands as a privileged user
  3. To create a super-user
  4. To shut down the system
Question 10 Multiple Choice (Single Answer)

Which of the following is the right command to secure copy all current dir's PDF files to the user’s remote home folder?

  1. scp all.pdf [email protected]:/home/user
  2. scp *.pdf [email protected]:/home/user
  3. scp ?.pdf [email protected]:/home/user
  4. scp *.pdf [email protected]:/var/log
Question 11 Multiple Choice (Single Answer)

Which of the following protocols is secure?

  1. SCP
  2. FTP
  3. HTTP
  4. Telnet
Question 12 Multiple Choice (Single Answer)

Which open-source software is used in Linux to provide FTP based services?

  1. vsftpd
  2. apache
  3. Samba
  4. nginx
Question 13 Multiple Choice (Single Answer)

Which of the following files stores hashed passwords in Linux?

  1. /etc/shadow
  2. /etc/passwd
  3. /etc/hosts
  4. /tmp/password
Question 14 Multiple Choice (Single Answer)

Which file is edited in Linux to permanently configure a networking device?

  1. /etc/network/interfaces
  2. /etc/network.conf
  3. /etc/network/network.conf
  4. /etc/network/interfaces.conf
Question 15 Multiple Choice (Single Answer)

Which command would assign the permissions drwxrwxr-x to the temp directory?

  1. chmod 775 temp
  2. chmod 700 temp
  3. chmod 755 temp
  4. chmod 766 temp
Question 16 Multiple Choice (Single Answer)

What type of tool is apt?

  1. System monitor
  2. Process manager
  3. Text editor
  4. Package manager
Question 17 Multiple Choice (Single Answer)

What type of users can read the /etc/passwd file?

  1. Any user
  2. Only superusers
Question 18 Multiple Choice (Single Answer)

What command will output the last five lines of a file called test.txt?

  1. tail test.txt
  2. tail -n 5 test.txt
  3. head -n 5 test.txt
  4. less text.txt
Question 19 Multiple Choice (Single Answer)

What is /var the name of?

  1. Hidden file
  2. Configuration file
  3. Directory
  4. Read-only file
Question 20 Multiple Choice (Single Answer)

Which command changes file ownership?

  1. chmod
  2. chown
  3. run
  4. set