11.5 Linux File Management

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

You are the administrator for a Linux server. Following best practices for system security and effective administration, you always log in to the system with a standard non-root user account. You only elevate your privileges to root user level when you need to do an administrative task. What do you enter at the command prompt that will, by default, switch you to the foot user and require you to enter the root password?

su -

You're using the vi editor to manage a text file on a Linux system. You want to type new text into the file. When you type, you want the existing text that comes after the cursor to be pushed down. Which mode provides this function?

Insert Mode

You've just opened a text file in the vi editor, and you're in Command Mode by default. There is more than one way to get from Command Mode to Replace Mode. Which of the following key-press sequences will get you into Replace Mode?

Press the "i" key and then press insert , Press the S key and then press insert, and Press Insert and then press insert again

You need to see what kind of CPU is being used on a Linux system. The /proc directory contains a text file called cpuinfo that will give you the information you are looking for. Which of the following commands will display the entire contents of the cpuinfo text file on the screen?

cat/proc/cpuinfo

A technician attempts to run an executable file on a Linux computer and receives a Permission Denied message. Which of the following command should the technician use?

chmod

A technician uses the ps command to find information about a process that is running a browser application on a Linux computer. The technician knows the name of the process, but the list is very long. Which of the following commands would help the technician find and display only the information about the browser process?

grep

You need to view the contents of /var/log/auth.log to get information about the users that have been logging on to the system. The auth.log file is a plain text, file so you decide to use the cat command to review the file. However, the display fills with the text for several pages, and you can't see the entire file. What command can you use to view the content of the auth.log file page by page?

more/var/log/auth.log and less/var/log/auth.log


Set pelajaran terkait

CH 38 Assessment and Management of Patients with Rheumatic Disorders (E4)

View Set

Learning Styles and Multiple Intelligences

View Set

Chapter 08: Health Problems of Newborns test 1

View Set

AWS Certified Machine Learning Specialty A Cloud Guru Quiz Questions (Level 2)

View Set

Cap 3: l'architettura del computer

View Set