1.
.............is the command used to create a new directory.
Correct Answer
A. Mkdir
Explanation
The command "mkdir" is used to create a new directory.
2.
Command used to create an empty file.
Correct Answer
B. Touch
Explanation
The correct answer is "touch". The touch command is used to create an empty file in various operating systems, including Linux and Unix. It updates the access and modification timestamps of the file, and if the file does not exist, it creates a new empty file with the specified name.
3.
Which command will display your IP address?
Correct Answer
A. Ifconfig
Explanation
ipconfig is the windows command for displaying your ip address. ping will test a network connection. netstat will display networking information.
4.
Which command do you use to display the differences between two files?
Correct Answer
B. Diff
Explanation
df will display free disk space. comp is the windows command for comparing the contents of two files. sdiff will merge two files
5.
Which command will create a new directory?
Correct Answer
C. Mkdir
Explanation
rmdir will remove a directory. md is the windows command to make a new folder. make will recompile a group of programs
6.
Which command will display the current directory?
Correct Answer
C. Pwd
Explanation
cd will change the directory. whoami will display current user. uname will display system information
7.
Which command will allow you to run a command as another user?
Correct Answer
B. Su
Explanation
runas is the equivalant Windows command. sudo allows you to run the command under superuser privileges, chroot will run the command under a different directory.
8.
The files under this directory are deleted when the system is rebooted.
Correct Answer
C. /tmp
Explanation
The /tmp directory is a temporary directory where files are stored that are only needed for a short period of time. These files are often created by programs or scripts during their execution. When the system is rebooted, the /tmp directory is cleared, deleting all the files stored in it. This ensures that any temporary files that were left behind from previous sessions are removed, freeing up disk space and maintaining system cleanliness.
9.
If you want to give read/write/execute rights to the file owner while giving read/execute rights to the group and other, which command do you use?
Correct Answer
B. Chmod 755
Explanation
The command "chmod 755" is used to give read/write/execute rights to the file owner while giving read/execute rights to the group and other. In Linux, the "chmod" command is used to change the permissions of a file or directory. The three digits in the command represent the permissions for the owner, group, and others respectively. The number 7 represents read, write, and execute permissions, while the number 5 represents read and execute permissions. Therefore, "chmod 755" grants the necessary permissions as specified in the question.
10.
If you want to modify the file owner, which command do you use?
Correct Answer
D. Chown
Explanation
The chown command is used to modify the file owner. This command allows the user to change the ownership of a file or directory to a different user or group. By using chown, the user can transfer the ownership rights to another user, granting them full control over the file or directory. This command is commonly used in Unix-like operating systems to manage file ownership and permissions.
11.
Which command will kill a named process?
Correct Answer
A. Killall
Explanation
The correct answer is "killall". The killall command is used to terminate or kill a named process in Linux. It sends a signal to the specified process, causing it to terminate. This command is useful when you want to end multiple instances of a process running on your system.
12.
Which command will display detailed information about a running process?
Correct Answer
C. Pslist
Explanation
Pslist is a command that displays detailed information about a running process. It provides information such as process ID, CPU usage, memory usage, and other details related to the running processes on a system. This command is commonly used in Windows operating systems to gather information about processes and troubleshoot any issues related to them.
13.
What will schedule a command to run at a later time?
Correct Answer
A. Crontab
Explanation
Crontab is a command in Unix-like operating systems that allows users to schedule commands or scripts to run at specific times or intervals. It is commonly used to automate repetitive tasks or schedule system maintenance. By using crontab, users can specify the exact time and frequency at which a command should be executed, making it the correct answer for scheduling a command to run at a later time.
14.
What does GNU stand for?
Correct Answer
A. Gnu’s not Unix
Explanation
GNU stands for "Gnu's not Unix" because the acronym GNU was created as a recursive acronym, which means that it stands for itself. The phrase "Gnu's not Unix" is a play on words, indicating that although GNU shares similarities with Unix, it is not a direct derivative or clone of Unix. This reflects the philosophy behind the GNU Project, which aimed to develop a free and open-source operating system that is compatible with Unix but independent from it.
15.
What command is used to clear up the command prompt window?
Correct Answer
D. Clear
Explanation
The correct answer is "clear" because it is the command used to clear up the command prompt window. This command clears all the previous commands and output from the window, providing a clean and empty prompt for new commands.
16.
"cat" is the command used to?
Correct Answer
D. See the contents of file
Explanation
The "cat" command is used to display the contents of a file in the terminal. It is commonly used to quickly view the contents of text files without opening them in an editor. By running the "cat" command followed by the file name, the file's contents will be printed to the terminal.
17.
DHCP stands for?
Correct Answer
A. Dynamic Host Configuration Protocol
Explanation
DHCP stands for Dynamic Host Configuration Protocol. This protocol is used to automatically assign IP addresses and other network configuration settings to devices on a network. It allows for the efficient management and allocation of IP addresses, making it easier to set up and maintain a network. The other options, Dual Host Configuration Protocol and Dynamic Host Computer Protocol, are not correct and do not exist. Therefore, the correct answer is Dynamic Host Configuration Protocol.
18.
The language linux uses is?
Correct Answer
A. C ,C++
Explanation
Linux is an open-source operating system that is primarily written in the C programming language. C is a low-level language that provides direct access to memory and hardware, making it suitable for developing operating systems. Additionally, Linux also includes components written in C++ which is an extension of the C language, providing object-oriented programming capabilities. Therefore, the correct answer is C, C++ as these are the primary languages used in Linux development.
19.
What does the PIPE symbol do?
Correct Answer
C. Reduce amount of info on the screen
Explanation
The PIPE symbol in computing is used to redirect the output of one command to another command, allowing for the manipulation and filtering of data. It does not save or increase the amount of information on the screen, but rather reduces it by selectively displaying only the desired output.
20.
Which command will check files for errors?
Correct Answer
B. Fsck
Explanation
The command "fsck" is used to check and repair filesystem errors in Unix-like operating systems. It stands for "file system consistency check" and is typically used to scan and fix issues with the filesystem structure, such as incorrect metadata or corrupted data blocks. By running "fsck", the user can ensure the integrity of their files and prevent further damage or data loss.