Sunteți pe pagina 1din 11

GPU’s (General Purpose Utilities) Command

1.script command :
[bsc15@localhost Desktop]$ script mj.lst

Script started, file is mj.lst

2.cat command :
[bsc15@localhost Desktop]$ cat > mj.lst

1aA

2bB

3cC

4bB

4dD

5eE

6fF

7gG

8hH

9iI

10 j J

[bsc16@localhost Desktop]$ cat>op.txt

As

So

Dj

Cm

Vi

za

Az
[bsc15@localhost Desktop]$ cat>om.lst

10

10000

300

20

200

[bsc15@localhost Desktop]$ cat >> mj.lst

11 k K

[bsc15@localhost Desktop]$ cat mj.lst

1aA

2bB

3cC

4bB

4dD

5eE

6fF

7gG

8hH

9iI

10 j J

11 k K
3.cal command :
[bsc15@localhost Desktop]$ cal

August 2019

Su Mo Tu We Th Fr Sa

1 2 3

4 5 6 7 8 9 10

11 12 13 14 15 16 17

18 19 20 21 22 23 24

25 26 27 28 29 30 31

[bsc15@localhost Desktop]$ cal 2018

2018

January February March

Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa

1 2 3 4 5 6 1 2 3 1 2 3

7 8 9 10 11 12 13 4 5 6 7 8 9 10 4 5 6 7 8 9 10

14 15 16 17 18 19 20 11 12 13 14 15 16 17 11 12 13 14 15 16 17

21 22 23 24 25 26 27 18 19 20 21 22 23 24 18 19 20 21 22 23 24

28 29 30 31 25 26 27 28 25 26 27 28 29 30 31

April May June

Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa

1 2 3 4 5 6 7 1 2 3 4 5 1 2

8 9 10 11 12 13 14 6 7 8 9 10 11 12 3 4 5 6 7 8 9

15 16 17 18 19 20 21 13 14 15 16 17 18 19 10 11 12 13 14 15 16

22 23 24 25 26 27 28 20 21 22 23 24 25 26 17 18 19 20 21 22 23

29 30 27 28 29 30 31 24 25 26 27 28 29 30
July August September

Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa

1 2 3 4 5 6 7 1 2 3 4 1

8 9 10 11 12 13 14 5 6 7 8 9 10 11 2 3 4 5 6 7 8

15 16 17 18 19 20 21 12 13 14 15 16 17 18 9 10 11 12 13 14 15

22 23 24 25 26 27 28 19 20 21 22 23 24 25 16 17 18 19 20 21 22

29 30 31 26 27 28 29 30 31 23 24 25 26 27 28 29

30

October November December

Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa

1 2 3 4 5 6 1 2 3 1

7 8 9 10 11 12 13 4 5 6 7 8 9 10 2 3 4 5 6 7 8

14 15 16 17 18 19 20 11 12 13 14 15 16 17 9 10 11 12 13 14 15

21 22 23 24 25 26 27 18 19 20 21 22 23 24 16 17 18 19 20 21 22

28 29 30 31 25 26 27 28 29 30 23 24 25 26 27 28 29

30 31

4.bc command :
[bsc16@localhost Desktop]$ bc

bc 1.06.95

Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.

This is free software with ABSOLUTELY NO WARRANTY.

For details type `warranty'.

10+10

20
[bsc16@localhost Desktop]$ bc

bc 1.06.95

Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.

This is free software with ABSOLUTELY NO WARRANTY.

For details type `warranty'.

scale=2

192872/342

563.95

[bsc16@localhost Desktop]$ bc

bc 1.06.95

Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.

This is free software with ABSOLUTELY NO WARRANTY.

For details type `warranty'.

ibase=2

1010001010111111110

333310

[bsc16@localhost Desktop]$ bc

bc 1.06.95

Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.

This is free software with ABSOLUTELY NO WARRANTY.

For details type `warranty'.

obase=2

14264323

110110011010100000000011
5.sort command :

[bsc16@localhost Desktop]$ sort op.txt

As

Az

Cm

Dj

So

Vi

za

[bsc15@localhost Desktop]$ sort om.lst

10

10000

20

200

300

[bsc15@localhost Desktop]$ sort -n om.lst

10

20

200

300

10000
6.who command :
[bsc15@localhost Desktop]$ who

bsc15 tty1 2019-08-28 02:43 (:0)

bsc15 pts/0 2019-08-28 02:59 (:0.0)

bsc15 pts/1 2019-08-28 02:59

bsc15 pts/3 2019-08-28 03:04 (:0.0)

bsc15 pts/4 2019-08-28 03:05

[bsc15@localhost Desktop]$ who am i

bsc15 pts/4 2019-08-28 03:05

7.clear command :
[bsc15@localhost Desktop]$ clear

8.wc command :
[bsc15@localhost Desktop]$ wc mj.lst

13 33 69 mj.lst

[bsc15@localhost Desktop]$ wc -l mj.lst

13 mj.lst

[bsc15@localhost Desktop]$ wc -w mj.lst

33 mj.lst

[bsc15@localhost Desktop]$ wc -c mj.lst

69 mj.lst

[bsc15@localhost Desktop]$ wc -lc mj.lst

13 69 mj.lst

[bsc15@localhost Desktop]$ wc -lw mj.lst

13 33 mj.lst
9.grep command :

[bsc15@localhost Desktop]$ grep '2 b B' mj.lst

2bB

[bsc15@localhost Desktop]$ grep -n '3 c C' mj.lst

3:3 c C

[bsc15@localhost Desktop]$ grep -c '4 d D' mj.lst

[bsc15@localhost Desktop]$ grep -e '6 f F' mj.lst

6fF

[bsc15@localhost Desktop]$ grep -e '4 b B' -e '4 d D' mj.lst

4bB

4dD

10.date command :
[bsc15@localhost Desktop]$ date

Wed Aug 28 03:18:32 PDT 2019

[bsc15@localhost Desktop]$ date "+%a"

Wed

[bsc15@localhost Desktop]$ date "+%A"

Wednesday

[bsc15@localhost Desktop]$ date "+%b"

Aug

[bsc15@localhost Desktop]$ date "+%B"

August
[bsc15@localhost Desktop]$ date "+%c"

Wed 28 Aug 2019 04:19:29 AM PDT

[bsc15@localhost Desktop]$ date "+%d "

28

[bsc15@localhost Desktop]$ date "+%D"

08/28/19

[bsc15@localhost Desktop]$ date "+%F"

2019-08-28

[bsc15@localhost Desktop]$ date "+%y|+%m|+%d"

19|+08|+28

[bsc15@localhost Desktop]$

11.filter command :

a.head :
[bsc15@localhost Desktop]$ head mj.lst

1aA

2bB

3cC

4bB

4dD

5eE

6fF

7gG

8hH

9iI

[bsc15@localhost Desktop]$ head -n 5 mj.lst


1aA

2bB

3cC

4bB

4dD

b.tail :
[bsc15@localhost Desktop]$ tail mj.lst

4dD

5eE

6fF

7gG

8hH

9iI

10 j J

11 k K

[bsc15@localhost Desktop]$ tail -n 6 mj.lst

8hH

9iI

10 j J

11 k K

[bsc15@localhost Desktop]$ tail -c -50 mj.lst

dD
5eE

6fF

7gG

8hH

9iI

10 j J

11 k K

[bsc15@localhost Desktop]$ tail -c +50 mj.lst

hH

9iI

10 j J

11 k K

12.exit command :
[bsc15@localhost Desktop]$ exit

exit

S-ar putea să vă placă și