Professional Documents
Culture Documents
Exp 1
Exp 1
Assignment 1
Submitted by:
1. List all the files in your current working directory including the hidden files in the long list
format.
ls -al
2. Make a new directory d1 in your home directory and copy all the txt files into that
directory.
Ifconfig
Therefore, IP address is 192.168.47.65
4. Display all the processes running on your computer (yours as well as processes run by all
other users currently working on the computer).
ls *txt
cat justDisplay.txt // display the content “”just to make sure it contain more than 10 lines””
first
second
third
4th
5th
6th
7th
8th
9th
10th
11th
head -10 justDisplay.txt // This instruction will output the first 10 lines
11. Save calendar of Jan-2009 in mycal.txt.
12. Display the short host name and the IP address of the host [two commands are required here].
Pwd
ls -ld /
15. Write a command to append system date and time to the file mycal.txt, and then display
the file contents [two commands are required here].