0

Linux file execution permission

Description: Linux file execution permission
Number of Questions: 20
Created by:
Tags: Linux
Attempted 0/20 Correct 0 Score 0

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

  1. /home/user

  2. /usr/user

  3. /root

  4. /user


Correct Option: A

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


Correct Option: D

Which directory does cd - navigate to?

  1. Previous directory

  2. Home directory

  3. Parent of the current directory

  4. Root directory


Correct Option: A

How do you write to a file in nano?

  1. CTRL+O

  2. CTRL+X

  3. CTRL+W

  4. CTRL+Q


Correct Option: A

What is GRUB primarily used for?

  1. Linux authentication

  2. Linux networking

  3. Linux boot selection

  4. Linux permissions


Correct Option: C

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


Correct Option: A

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


Correct Option: B

By default, nginx serves HTTP content on which port?

  1. 8080

  2. 80

  3. 443

  4. 8443


Correct Option: B

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


Correct Option: B

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


Correct Option: B

Which of the following protocols is secure?

  1. SCP

  2. FTP

  3. HTTP

  4. Telnet


Correct Option: A

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

  1. vsftpd

  2. apache

  3. Samba

  4. nginx


Correct Option: A

Which of the following files stores hashed passwords in Linux?

  1. /etc/shadow

  2. /etc/passwd

  3. /etc/hosts

  4. /tmp/password


Correct Option: A

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


Correct Option: A

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


Correct Option: A

What type of tool is apt?

  1. System monitor

  2. Process manager

  3. Text editor

  4. Package manager


Correct Option: D

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

  1. Any user

  2. Only superusers


Correct Option: A

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


Correct Option: B

What is /var the name of?

  1. Hidden file

  2. Configuration file

  3. Directory

  4. Read-only file


Correct Option: C

Which command changes file ownership?

  1. chmod

  2. chown

  3. run

  4. set


Correct Option: B
- Hide questions