Basic Linux commands Exam Questions and Answers
Basic Linux commands Exam Questions and Answers cat [filename] - Correct Answer️️ -Display file's contents to the standard output device (usually your monitor). cd /directorypath - Correct Answer️️ -Change to directory. chmod [options] mode filename - Correct Answer️️ -Change a file's permissions. chown [options] filename - Correct Answer️️ -Change who owns a file. clear - Correct Answer️️ -Clear a command line screen/window for a fresh start. cp [options] source destination - Correct Answer️️ -Copy files and directories. date [options] - Correct Answer️️ -Display or set the system date and time. df [options] - Correct Answer️️ -Display used and available disk space. du [options] - Correct Answer️️ -Show how much space each file takes up. file [options] filename - Correct Answer️️ -Determine what type of data is within a file. find [pathname] [expression] - Correct Answer️️ -Search for files matching a provided pattern. grep [options] pattern [filesname] - Correct Answer️️ -Search files or output for a particular pattern. kill [options] pid - Correct Answer️️ -Stop a process. If the process refuses to stop, use kill -9 pid. less [options] [filename] - Correct Answer️️ -View the contents of a file one page at a time
Written for
- Institution
- Linux
- Course
- Linux
Document information
- Uploaded on
- May 28, 2024
- Number of pages
- 3
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
basic linux commands exam questions and answers
Document also available in package deal