Chapter 7
1. The shell waits for the command to finish executing. You can send the command to the background by using "&".
2. cat list | sort | lpr
3. A PID number is an identification number assigned to a command running in the background, which can be used to differentiate between commands. The PS (process status) utility.
4. $ ls section*
$ ls section[1-3]
$ ls i*
$ ls*[13]
5. fgrep -i 'a' | wc -l fgrep 'a' find lines containing "a"; the -i option tells it to ignore the case (thus both "A" and "a")
You could also use the other *grep-commands, and you could specify both A and a (eg. "egrep '[Aa]') wc counts lines, words and characters; the -l option makes it just write number of lines. ls | fgrep '$(.' ls -S | lpr or ls -S > /dev/lpt (probably requires root-privileges)
(ls -S sorts by size - largest first. Other useful options: -r reverse current sorting. -s adds the size before filename. -l long listing. -t sort by creation time.)
6. $ sort numbers > phone_list
$ cat permdemos.c | tr '[{}]' '(())'
$ cat part[12] > book
7. cat and grep tr 8. $ grep \$Id id_list
$ grep -i suzi < addresses
$ grep -il memo *.txt > memoranda_files
$ file /usr/bin/* | grep "Again shell script" | sort -r
Chapter 8
1. A. Nautilus is the GNOME file manager
B. Browse files, Search for specific files, Edit, add, and remove files, Change file locations.
C. type what your searching for
2. It’s a program that emulates a video terminal within some other display architecture.
It allows you to have super user permission to system commands.
3. find /today.odt it will search all directories under root, including links
4. A. You can either click the filename or icon and select Open from the drop-down menu or you can double-click the filename or icon.
B. Nautilus determines the appropriate program to use when opening a file based on the file’s MIME type.
C. The menu bar contains many menus including File and Bookmarks. The toolbar contains navigation icons and a home icon. The location bar contains view as and magnification icons.
D. location bar displays the URI of the information displayed in the
Nautilus window. Gives you physical location and gives you the ability to manually change folder location.
You May Also Find These Documents Helpful
-
List Folder/Read Data, Read Attributes, Read Extended Attributes, Create Files/Write Data, Create Folders/Append Data, Write Attributes, Write Extended Attributes, Read Permissions,…
- 766 Words
- 4 Pages
Good Essays -
A student writes a report using a word processor, saving the report in a file called my report. The student stores the file on his laptop hard disk drive. Later, he posts the file on a file-sharing site for a classmate to review the report. Then, he copies an updated version of the file to a flash drive to submit it to his instructor. Which of the following are some of the important features supplied by files as defined by a computer OS? (choose three answers)…
- 957 Words
- 4 Pages
Good Essays -
Which of the following symbols instructs the shell to redirect the output of a command to the specified file instead of the screen and overwrite the file?…
- 2385 Words
- 10 Pages
Powerful Essays -
To start a job in the foreground, type in the command at the UNIX prompt and hit return. There are two ways to start a job in the background. First, you can choose the command from your root menu or you can type in the command at the UNIX prompt followed by the ampersand…
- 567 Words
- 3 Pages
Good Essays -
9. A student writes a report using a word processor, saving the repot in a file called my_report. The student stores the file on his laptop hard disk drive. Later, he pasts the file on a file-sharing site for a classmate to review the report. Then, he copies an updated version of the file to a flash drive to submit it to his instructor. Which of the following are some of the important features supplied by files as defined by a computer OS?…
- 1315 Words
- 6 Pages
Good Essays -
What does the shell do while a command is executing? What should you do if you do not want to wait for a command to finish before running another command?…
- 1031 Words
- 5 Pages
Powerful Essays -
1. Is each of the following an absolute pathname, a relative pathname, or a simple filename?…
- 377 Words
- 2 Pages
Satisfactory Essays -
________ data items may involve organizing them, checking them for accuracy, or performing mathematical operations on them.…
- 12553 Words
- 51 Pages
Powerful Essays -
|File – Is a place where data is stored on a computer, there are many different types of files and most if not all data is stored in a file. |…
- 829 Words
- 4 Pages
Satisfactory Essays -
If using a long listing and no process modifiers, what is the swap space amount for the bash command?…
- 385 Words
- 2 Pages
Satisfactory Essays -
Complete the University of Phoenix Material: File Processing Commands Worksheet located on your student website.…
- 541 Words
- 4 Pages
Satisfactory Essays -
Which of the following symbols instructs the shell to redirect the output of a command to the specified file instead of the screen and overwrite the file?…
- 272 Words
- 2 Pages
Good Essays -
d. An operating system manages hardware, runs applications, provides an interface for users, and stores, retrieves, and manipulates files.…
- 1910 Words
- 8 Pages
Powerful Essays -
Unit 2 Chapter 5 1) who 3 }cp - copy files and directories mv - move (rename) files you would just basically overwrite the file 4) apropos edit Typical editors are vim, ex, ed and gedit. 8) The which utility displays a message saying that the command you are looking for is not in the list of directories in your search path. For example, $ which me /usr/bin/which: no me in (/usr/bin/which: no me in (/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/sam/bin) 10) Approximately 20 Unit 2 Chapter 6 1) 1.Is each of the following an absolute pathname, a relative pathname, or a simple filename? a. milk_co b. correspond/business/milk_co c. /home/max d. /home/max/literature/promo e. .. f. letter.0210…
- 560 Words
- 3 Pages
Satisfactory Essays -
8. Some of the users in your company create and delete so many files that they have…
- 999 Words
- 4 Pages
Good Essays