Unix Useful Commands

Unix - 有用的命令

本快速指南列出了命令,包括语法和简要说明。更多详细信息,请使用 -

$man command

文件和目录

这些命令允许您创建目录和处理文件。

S.No. Command & Description
1

cat

Displays File Contents

2

cd

Changes Directory to dirname

3

chgrp

Changes file group

4

chmod

Changes permissions

5

cp

Copies source file into destination

6

file

Determines file type

7

find

Finds files

8

grep

Searches files for regular expressions

9

head

Displays first few lines of a file

10

ln

Creates softlink on oldname

11

ls

Displays information about file type

12

mkdir

Creates a new directory dirname

13

more

Displays data in paginated form

14

mv

Moves (Renames) an oldname to newname

15

pwd

Prints current working directory

16

rm

Removes (Deletes) filename

17

rmdir

Deletes an existing directory provided it is empty

18

tail

Prints last few lines in a file

19

touch

Updates access and modification time of a file

操纵数据

可以使用以下命令来比较和更改文件的内容。

S.No. Command & Description
1

awk

Pattern scanning and processing language

2

cmp

Compares the contents of two files

3

comm

Compares sorted data

4

cut

Cuts out selected fields of each line of a file

5

diff

Differential file comparator

6

expand

Expands tabs to spaces

7

join

Joins files on some common field

8

perl

Data manipulation language

9

sed

Stream text editor

10

sort

Sorts file data

11

split

Splits file into smaller files

12

tr

Translates characters

13

uniq

Reports repeated lines in a file

14

wc

Counts words, lines, and characters

15

vi

Opens vi text editor

16

vim

Opens vim text editor

17

fmt

Simple text formatter

18

spell

Checks text for spelling error

19

ispell

Checks text for spelling error

20

emacs

GNU project Emacs

21

ex, edit

Line editor

22

emacs

GNU project Emacs

压缩文件

文件可能被压缩以节省空间。可以创建和检查压缩文件。

S.No. 命令与说明
1

压缩

压缩文件

2

gunzip解

帮助解压缩gzip文件

3

gzip的

GNU替代压缩方法

4

解压

帮助解压缩文件

拉开拉链

列出,测试和解压缩档案中的压缩文件

6

ZCAT

cat一个压缩文件

7

ZCMP

比较压缩文件

8

ZDIFF

比较压缩文件

9

命令zmore

用于crt查看压缩文本的文件过滤器

获取信息

各种Unix手册和文档可以在线获得。以下Shell命令提供信息 -

S.No. 命令与说明
1

恰好的

通过关键字查找查找命令

2

信息

在线显示命令信息页

2

在线显示手册页

3

什么是

搜索whatis数据库以获取完整的单词

4

喊叫

GNOME帮助查看器

网络通信

以下命令用于从本地Unix主机发送和接收文件到世界各地的远程主机。

S.No. 命令与说明
1

FTP

文件传输程序

2

RCP

远程文件复制

3

远程登录

远程登录到Unix主机

4

RSH

远程shell

TFTP

简单的文件传输程序

6

远程登录

使终端连接到另一个主机

7

SSH

保护shell终端或命令连接

8

SCP

保护shell远程文件拷贝

9

SFTP

保护shell文件传输程序

出于安全考虑,有些命令可能会在您的计算机上受到限制。

用户之间的消息

Unix系统支持其他用户和全球电子邮件的屏幕消息 -

S.No. 命令与说明
1

演化

Linux上的GUI邮件处理工具

2

邮件

简单发送或读邮件程序

3

MESG

许可或拒绝邮件

4

将文件发送给另一个用户

松树

基于Vdu的邮件实用程序

6

谈论

与另一个用户通话

7

将消息写入另一个用户

编程实用程序

根据您在Unix上安装的内容,可以使用以下编程工具和语言。

S.No. Command & Description
1

dbx

Sun debugger

2

gdb

GNU debugger

3

make

Maintains program groups and compile programs

4

nm

Prints program\"s name list

5

size

Prints program\"s sizes

6

strip

Removes symbol table and relocation bits

7

cb

C program beautifier

8

cc

ANSI C compiler for Suns SPARC systems

9

ctrace

C program debugger

10

gcc

GNU ANSI C Compiler

11

indent

Indent and format C program source

12

bc

Interactive arithmetic language processor

13

gcl

GNU Common Lisp

14

perl

General purpose language

15

php

Web page embedded language

16

py

Python language interpreter

17

asp

Web page embedded language

18

CC

C++ compiler for Suns SPARC systems

19

g++

GNU C++ Compiler

20

javac

JAVA compiler

21

appletvieweir

JAVA applet viewer

22

netbeans

Java integrated development environment on Linux

23

sqlplus

Runs the Oracle SQL interpreter

24

sqlldr

Runs the Oracle SQL data loader

25

mysql

Runs the mysql SQL interpreter

杂项命令

这些命令列出或更改有关系统的信息 -

S.No. Command & Description
1

chfn

Changes your finger information

2

chgrp

Changes the group ownership of a file

3

chown

Changes owner

4

date

Prints the date

5

determin

Automatically finds terminal type

6

du

Prints amount of disk usage

7

echo

Echo arguments to the standard options

8

exit

Quits the system

9

finger

Prints information about logged-in users

10

groupadd

Creates a user group

11

groups

Show group memberships

12

homequota

Shows quota and file usage

13

iostat

Reports I/O statistics

14

kill

Sends a signal to a process

15

last

Shows last logins of users

16

logout

Logs off Unix

17

lun

Lists user names or login ID

18

netstat

Shows network status

19

passwd

Changes user password

20

passwd

Changes your login password

21

printenv

Displays value of a shell variable

22

ps

Displays the status of current processes

23

ps

Prints process status statistics

24

quota -v

Displays disk usage and limits

25

reset

Resets terminal mode

26

script

Keeps script of terminal session

27

script

Saves the output of a command or process

28

setenv

Sets environment variables

30

stty

Sets terminal options

31

time

Helps time a command

32

top

Displays all system processes

33

tset

Sets terminal mode

34

tty

Prints current terminal name

35

umask

Show the permissions that are given to view files by default

36

uname

Displays name of the current system

37

uptime

Gets the system up time

38

useradd

Creates a user account

39

users

Prints names of logged in users

40

vmstat

Reports virtual memory statistics

41

w

Shows what logged in users are doing

42

who

Lists logged in users

Copyright © 2002-2017 vue5.com 版权所有

Top