Академический Документы
Профессиональный Документы
Культура Документы
To do binary calculation
[first23@cc1 ~]$ bc
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
2+6
8
5*5
25
64 /8
8
1245 * 6
7470
Ctrl + D to exit
NAME
cal - displays a calendar
SYNOPSIS
cal [-smjy13] [[month] year]
DESCRIPTION
Cal displays a simple calendar. If arguments are not specified, the cur-
rent month is displayed. The options are as follows:
1022 date
1023 date +"%M"
1024 date +"%S"
1025 date +"%H"
1026 date +"%H -%M -%S"
1027 date +"%m"
1028 who
1029 echo god is love
1030 cal
1031 cal 2010
1032 $bc
1033 bc 1.06
1034 $ bc
1035 $bc
1036 man bc
1037 clear
1038 bc
1039 man cal
[first23@cc1 ~]$ ls
durga15.c factorial.sh k3.c m.k.sh unix
[first23@cc1 ~]$ ls –l
-rw-r--r-- 1 first23 users 0 Apr 9 20:25 durga15.sh
-rw-r--r-- 1 first23 users 213 Mar 14 17:16 factorial.sh
-rw-r--r-- 1 first23 users 54 Apr 7 16:35 m.k.sh
drwxr-xr-x 2 first23 users 4096 Apr 20 20:05 unix
[first23@cc1 ~]$
To remove a directory
To remove a file
Cut command
Paste Command
uniq command
[first23@cc1 ~]$ cat name
ramesh
rajesh
dinesh
suresh
suresh
harish
[first23@cc1 ~]$ uniq name
ramesh
rajesh
dinesh
suresh
harish
[first23@cc1 ~]$ uniq -d name
suresh
[first23@cc1 ~]$ uniq -D name
suresh
suresh
[first23@cc1 ~]$
tr command
Grep filter
Sed filter
awk filter