NT1430 DATE __6/27/15_________
1. What is the utility that can be used to copy a file, including text and executable program (binary) files? cp 2. Which of the following Linux utilities lists the names of files in a single directory? ls 3. What command displays the last 10 lines of a file? tail
What command displays the first 10 lines of a file? head
4. What is a Process? A process is the execution of a command by Linux (they can communicate with each other) What Utility provides communication between processes where output of one process provide input for another? pipe
5. Which of the following utilities do you use to determine the list of users logged on to a specific terminal? who
6. What does the command pwd do? pwd prints the name of the current/working directory
What does the cd command do? cd is for change directory
7. In terms of file or directory permissions, what does U-G-O stand for? User Group Other What are the 3 permission that can be given to a file or directory? r=read w=write x=execute
8. In terms of permissions, what does 777 mean? Everyone can read write and execute
9. What does the command chmod do? lets you change permissions of a file What happens when I use it with the following? chmod 755 myfile
When you perform the chmod 755 filename command you allow everyone to read and execute the file, and the file owner is allowed to write to the file as well
10. If I needed to change a user’s username from kcarter to kparker, what command would I use?
Usermod –l kparker kcarter
11. What does grep do? The grep command is used to search text or searches the given file for lines containing a match to the given strings or words. By default, grep displays the matching lines
12.