23 Questions |
By Tpotter | Last updated: Dec 31, 2012
| Total Attempts: 429
Command line. Several of the questions require you to log into the training server to get your answers. If you have any problems or need help, let me know.
Questions and Answers
What command lists files in current directory?
What command lists files in current directory including owner and group information?
If you are in your home directory, how do you list list files in the current directory and sub directories?
If you are in your home directory, how do you list files with user, group and size of file including hidden files?
How do you list files in your current directory and all files 2 levels deep?
From the root directory, find files in /var/test/ directory with the name test3.txt
How do you find files in your current directory modified more than 48 hours ago
How do you find files in your current directory modified less than 60 minutes ago.
How do you find files in your current directory that are world writable.Note: use short syntax (ogw)
Which commands will list all files and folders in your home directory.
Ls -la ~
Ls -la ~/*
How do you view the entire contents of a file and make each line display the line number?
How do you view the last 100 lines of a file?
What is the command to find the line with "ERROR" in the file /var/test/data/test. Copy the results of the command into your answer.
Assuming you are in the folder /var/test/data/, what is the command to find the line with "ERROR" in the file
/var/test/data/test and in all files in folders below /var/test/data/. Enter the command into your answer.
What is the command to forcibly delete all files in the current directory?
What is the command to forcibly delete all files in the current directory ending in .sh?
What is the command to create an empty file named emptyfile.txt?
What is the command to display the first 5 lines of /var/test/data/test ?
Which methods are correct for querying 10.2.4.42 for the ip address of lyris.com
Dig -x @10.2.4.42 lyris.com
Dig @10.2.4.42 lyris.com
Nslookup 10.2.4.42 lyris.com
Nslookup -10.2.4.42 lyris.com
What is the dig command to get a hostname by supplying the ipaddress?
What is the command to view data in real time as it is being added to a file (log file)
Using tail and grep, how do you view only lines with the word ERROR as they are being added to the file "test" (assuming test is a log file that is constantly being written to).
What is the command to update all software packages on a server?
Those beginning their Linux careers may find the Linux Essentials certification an excellent place to start before jumping into the more advanced LPIC certifications. Linux Essentials cover necessary skills, such as command-line...
Questions: 80 | Attempts: 27813 | Last updated: Aug 28, 2020
Which command displays the list of groups to which a user belongs?
Ever since the Linux operating system rose in popularity, one of the most common questions about it is, "With all the different Linux distributions out there, which one is right for me?"
Well, wonder no more! We have...