Nt1430 Unit 2 Assignment 1

562 Words3 Pages
NT1430 Unit 2 Assignment 1 Chapter 5 The Linux Utilities 1. Which command can you use to determine who is logged in on a specific terminal? * The command you can use is the $ w as well as who, and finger command. 3. What Happens when you give the following commands if the file named done already exists? $ cp to_do done * Done is overwritten with contents of ‘to_do’ $ mv to_do done * to_do no longer exists after the command 4. How can you find out which utilities are available on your system for editing files? Which utilities are available for editing on your system? * You can use which and whereis to locate the utility and locate to search for files. You can use VIM to create and edit a file. 8. What is the result of giving which utility the name if a command that resides in a directory that is not in your search path? * It will say that this command cannot be found. 10. Experiment by calling the file utility with the name of files in /usr/bin. How many different types of files are there? * File /usr/bin/* | awk –D: ‘{print$7}’ | sort –u and there are 9 different file types. Chapter 6 The Linux File system 1. Is each of the following an absolute pathname, a relative pathname, or a simple filename? a. milk_co * Simple Filename b. Correspond/business/milk_co * Relative Pathname c. /home//max * Absolute Pathname d. /home/max/literature/promo * Absolute Pathname e. .. * Relative Pathname f. Letter.0210 * Simple Filename 3. If the working directory is /home/max with a subdirectory named literature, give three sets of commands you can use to create a subdirectory named classics under literature. Also give several sets of commands you can use to remove the classics directory and its contents. * mkdir/home/max/literature/classics

More about Nt1430 Unit 2 Assignment 1

Open Document