Professional Documents
Culture Documents
(BSSEF11 Afternoon)
Prepared by:
BSEF11A017 Usama Hafiz Muhammad
Submitted To:
Miss Saadia Shehzad
Introduction To Computing
Date:
26th
January 2012
:~> last
2. To display current date and your name, terminal, time and date when u logged in
For date, type: ~ > date For name, type : ~ > whoami : ~ >last We can check time and date when we logged in by typing last as above
3. To list the files in current directory Type ls to list the files :~>ls
4. To differentiate the files and directories from each other :~> ls -aF
5. To display file names line by line Type ls -1 to display file names line by line :~> ls -1 .
7. To display the hidden files line by line with file types specified An invisible file is one whose first character is the dot. :~> ls a1
no.
of
lines,
words
and
11. To bered contents of a file but the blank lines must be terminated :~/drive> cat b 1.txt
12. To show the line, word and character count individually :~> wc l :~> wc -w :~> wc m
13. To Copy a file from one place to other and also display the directory before and after copying the file cp 1.txt ../drive