Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using Linux Command 3 Lab#6.

Similar presentations


Presentation on theme: "Using Linux Command 3 Lab#6."— Presentation transcript:

1 Using Linux Command 3 Lab#6

2 Some useful commands [clear]
The clear command clears your terminal and returns the command line prompt to the top of the screen. /root]# clear

3 rmdir—Remove empty directories
Directories [rmdir] rmdir—Remove empty directories #rmdir dir1

4 cal [[0-12] 1--9999] [root@localhost /root]# cal 1947
Prints out a nicely formatted calendar of the current month, or a specified month, or a specified whole year. /root]# cal 1947

5 df Stands for disk free [root@localhost /root]# df -h
This tells you how much free space is left on your system. /root]# df -h

6 free Prints out available free memory.
You will notice two listings: swap space and physical memory. /root]# free

7 wc [-c] [-w] [-l] <filename>
Counts the number characters/bytes (with -c), words (with -w) or lines (with-l) in a file. /root]# wc –c /etc/passwd

8 file <filename>
Determining file type file <filename> This command prints out the type of data contained in a file. will tell you that portrate.jpg is a JPEG image data, # file portrate.jpg

9 head [root@localhost /root]# head -2 doc.txt Syntax:
head [-count | -n number] filename This command will display the first few lines of a file. By default, the first 10 lines of a file are displayed. However, you could use the preceding options to specify a different number of lines. # Outline of future projects ff Last modified: 02/02/99 /root]# head -2 doc.txt

10 tail [root@localhost /root]# tail -50 doc.txt
/root]# tail -r doc.txt


Download ppt "Using Linux Command 3 Lab#6."

Similar presentations


Ads by Google