1. What commands can you use to determine who is logged in on a specific terminal? who, whoami, who am i, finger and w
3. What happens if you give the following commands when the file ‘done’ already exists?
$cp to_do done
‘done’ is overwritten with contents of ‘to_do’
$ mv to_do done
‘done’ is overwritten with contents of ‘to_do’
‘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 the which. whereis, and locate utilities to search for files. The VIM
8. What is the result of giving the ‘which’ utility the name of a command that resides in a directory that is not in your search path? command not found
10. Experiment by calling the ‘file’ utility with names of files in /usr/bin. How many different types of files can you find there? file /usr/bin/* | awk –F: ‘{print $2}’ | sort –u
9 different file types
Chapter 5:
1. What commands can you use to determine who is logged in on a specific terminal? who, whoami, who am i, finger and w
3. What happens if you give the following commands when the file ‘done’ already exists?
$cp to_do done
‘done’ is overwritten with contents of ‘to_do’
$ mv to_do done
‘done’ is overwritten with contents of ‘to_do’
‘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 the which. whereis, and locate utilities to search for files. The VIM
8. What is the result of giving the ‘which’ utility the name of a command that resides in a directory that is not in your search path? command not found
10. Experiment by calling the ‘file’ utility with names of files in /usr/bin. How many different types of files can you find there? file /usr/bin/* | awk –F: ‘{print $2}’ | sort –u
9 different file types
You May Also Find These Documents Helpful
-
The directory and file structure is not indexed, so searching within a directory with a large amount of files can be time consuming.…
- 297 Words
- 2 Pages
Satisfactory Essays -
15. If the following program (myprog) is run from the command line as myprog friday tuesday sunday, What would be the output?…
- 3614 Words
- 15 Pages
Better Essays -
What clues do the tools used by the OSS tell you about the type of actions they conducted?…
- 456 Words
- 2 Pages
Good Essays -
saves labour, the document is now much easier to find – you only need to type the file name into the…
- 512 Words
- 3 Pages
Good Essays -
In this project we implement a simple shell called, cissh. I have implemented the some…
- 1734 Words
- 7 Pages
Satisfactory Essays -
search appears next to searches, including related searches if you have the prediction service turned on.…
- 319 Words
- 2 Pages
Satisfactory Essays -
Command's Purpose Linux Basic Linux Example Copies files cp cp thisfile.txt /home/thisdirectory Moves files mv mv thisfile.txt /home/thisdirectory Lists files ls ls (all information ls –l) Clears screen clear clear Closes prompt window exit exit Displays or sets date date date Deletes files rm rm thisfile.txt "Echoes" output on the screen echo echo this message Edits files with simple text editor vi vi thisfile.txt Compares the contents of files diff diff file1 file2 Finds a string of text in a file grep grep this word or phrase thisfile.txt Formats a diskette mke2fs (or mformat /sbin/mke2fs /dev/ fd0 (/dev/fd0 is the Linux equivalent of A:) Displays command help man man command Creates a directory…
- 359 Words
- 6 Pages
Satisfactory Essays -
The import statement at the beginning of the file places it in the package named…
- 903 Words
- 4 Pages
Good Essays -
Which Windows XP command-line scans the critical files of the operating system and replaces any files that have been corrupted?…
- 421 Words
- 2 Pages
Good Essays -
c) One of the way to narrow down the results in search engine is to use specific nouns and also put the most important terms first in the search text. Besides that, we can also use other search engine which has subject directories such as Gigablast, MSN, Excite and Open Directory Project. This is because, contains of information in search engine that is with subject directory classifies Web pages in an organized categories.…
- 459 Words
- 2 Pages
Good Essays -
+Tools rests on a powerful file explorer (up to 1,000 files can be selected in up to 1,000 recursed sub-directories). This facility lets you perform search/replace, statistics, macro execution, conversions, file tagging etc. on hundreds of files in one single action.…
- 5642 Words
- 23 Pages
Powerful Essays -
– vi, a very powerful full screen editor – pico, an utility with Linux – http://www.reallylinux.com/docs/editors/editor.shtml…
- 1283 Words
- 6 Pages
Powerful Essays -
The Finder is the Mac equivalent of Windows Explorer and Search, all rolled into one. The Finder is pretty self-explanatory. A directory tree appears in the left column of the Finder window, and the contents of the selected directory display in the right window pane. You can double-click folders to view contents. Pressing the Back button to backs out of a folder or directory.…
- 750 Words
- 3 Pages
Good Essays -
o Find: Determine which subset a particular element is in. Find typically returns an item from this…
- 1224 Words
- 7 Pages
Good Essays -
no categories to browse - just an alphabetized listing to scan through. Most of the files are in *.doc format. In the…
- 1399 Words
- 6 Pages
Powerful Essays