Week 2 Essays

Submitted By CurtiscraigHotma
Words: 514
Pages: 3

Stacie Rollins
Thursday, January 22, 2015 Nt1430
Unit 2
Assignment 1
Chapter 5: The Linux Utilities
1. Which commands can you use to determine who is logged in on a specific terminal? The command you can use is the $ was 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 you system for editing files?
Which utilities are available for editing on your system? You can use which and where is 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.
Assignment 2
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 Mkdir~ max/literature/classics Mkdir~/literature/classics Rmdir /home/max/literature/classics Rmdir~ max/literature/classics Rmdir~ /literature/classics Rm-r