Shell Commands 1
Shell Commands 1
3) Create a directory
mkdir dezyre Creates a directory dezyre in the current directory
6) Rename a file
mv file1 newfile Renames file1 to newfile 5
8) Delete a file
rm file1 Deletes file1 from current directory 6
more file1 Used to display the contents of a large file (ENTER = one line
down; SPACE = page down; q=Quit)
head file or head -2 file Will display the first few lines of a file or if -2 is
given - will display the top 2 lines
tail file or tail -2 file Will display the last few lines of a file or if -2 is
mentioned - will display the last 2 lines 8
du -h dezyre/*
10
11
12