转自:http://ss64.com/bash/
好不容易才找到....
alias
Create an alias
apropos Search Help manual pages (man -k)
apt-get
Search for and install software packages (Debian)
aspell
Spell Checker
awk
Find and Replace text, database sort/validate/index
b
bash GNU Bourne-Again SHell
bc
Arbitrary precision calculator language
bg
Send to background
break
Exit from a loop
builtin
Run a shell builtin
bzip2
Compress or decompress named file(s)
c
cal
Display a calendar
case
Conditionally perform a command
cat
Display the contents of a file
cd
Change Directory
cfdisk
Partition table manipulator for Linux
chgrp
Change group ownership
chmod
Change access permissions
chown
Change file owner and group
chroot
Run a command with a different root directory
chkconfig
System services (runlevel)
cksum
Print CRC checksum and byte counts
clear Clear terminal screen
cmp
Compare two files
comm
Compare two sorted files line by line
command
Run a command - ignoring shell functions
continue
Resume the next iteration of a loop
cp
Copy one or more files to another location
cron
Daemon to execute scheduled commands
crontab
Schedule a command to run at a later time
csplit
Split a file into context-determined pieces
cut
Divide a file into several parts
d
date
Display or change the date & time
dc
Desk Calculator
dd
Convert and copy a file, write disk headers, boot records
ddrescue
Data recovery tool
declare
Declare variables and give them attributes
df
Display free disk space
diff
Display the differences between two files
diff3
Show differences among three files
dig
DNS lookup
dir
Briefly list directory contents
dircolors
Colour setup for `ls'
dirname
Convert a full pathname to just a path
dirs
Display list of remembered directories
dmesg
Print kernel & driver messages
du
Estimate file space usage
e
echo
Display message on screen
egrep
Search file(s) for lines that match an extended expression
eject
Eject removable media
enable
Enable and disable builtin shell commands
env
Environment variables
ethtool Ethernet card settings
eval
Evaluate several commands/arguments
exec
Execute a command
exit
Exit the shell
expect
Automate arbitrary applications accessed over a terminal
expand
Convert tabs to spaces
export
Set an environment variable
expr
Evaluate expressions
f
false
Do nothing, unsuccessfully
fdformat
Low-level format a floppy disk
fdisk
Partition table manipulator for Linux
fg
Send job to foreground
fgrep
Search file(s) for lines that match a fixed string
file Determine file type
find
Search for files that meet a desired criteria
fmt
Reformat paragraph text
fold
Wrap text to fit a specified width.
for
Expand words
, and execute commands
format Format disks or tapes
free Display memory usage
fsck
File system consistency check and repair
ftp File Transfer Protocol
function
Define Function Macros
fuser
Identify/kill the process that is accessing a file
g
gawk
Find and Replace text within file(s)
getopts
Parse positional parameters
grep
Search file(s) for lines that match a given pattern
groups
Print group names a user is in
gzip
Compress or decompress named file(s)
h
hash
Remember the full pathname of a name argument
head
Output the first part of file(s)
history
Command History
hostname
Print or set system name
i
id
Print user and group id's
if
Conditionally perform a command
ifconfig
Configure a network interface
ifdown
Stop a network interface
ifup
Start a network interface up
import
Capture an X server screen and save the image to file
install
Copy files and set attributes
j
join
Join lines on a common field
k
kill
Stop a process from running
killall Kill processes by name
l
less
Display output one screen at a time
let
Perform arithmetic on shell variables
ln
Make links between files
local
Create variables
locate
Find files
logname
Print current login name
logout
Exit a login shell
look
Display lines beginning with a given string
lpc
Line printer control program
lpr
Off line print
lprint Print a file
lprintd Abort a print job
lprintq List the print queue
lprm
Remove jobs from the print queue
ls
List information about file(s)
lsof
List open files
m
make Recompile a group of programs
man
Help manual
mkdir
Create new folder(s)
mkfifo
Make FIFOs (named pipes)
mkisofs Create an hybrid ISO9660/JOLIET/HFS filesystem
mknod
Make block or character special files
more
Display output one screen at a time
mount
Mount a file system
mtools
Manipulate MS-DOS files
mv
Move or rename files or directories
mmv
Mass Move and rename (files)
n
netstat Networking information
nice
Set the priority of a command or job
nl
Number lines and write files
nohup
Run a command immune to hangups
nslookup
Query Internet name servers interactively
o
open
Open a file in its default application
op
Operator access
p
passwd
Modify a user password
paste
Merge lines of files
pathchk Check file name portability
ping
Test a network connection
pkill
Stop processes from running
popd
Restore the previous value of the current directory
pr
Prepare files for printing
printcap Printer capability database
printenv Print environment variables
printf
Format and print data
ps
Process status
pushd
Save and then change the current directory
pwd
Print Working Directory
q
quota
Display disk usage and limits
quotacheck
Scan a file system for disk usage
quotactl
Set disk quotas
r
ram
ram disk device
rcp
Copy files between two machines
read
read a line from standard input
readonly
Mark variables/functions as readonly
reboot Reboot the system
renice Alter priority of running processes
remsync Synchronize remote files via email
return
Exit a shell function
rev
Reverse lines of a file
rm
Remove files
rmdir
Remove folder(s)
rsync
Remote file copy (Synchronize file trees)
s
screen
Multiplex terminal, run remote shells via ssh
scp
Secure copy (remote file copy)
sdiff
Merge two files interactively
sed
Stream Editor
select
Accept keyboard input
seq
Print numeric sequences
set
Manipulate shell variables and functions
sftp Secure File Transfer Program
shift
Shift positional parameters
shopt
Shell Options
shutdown
Shutdown or restart linux
sleep
Delay for a specified time
slocate
Find files
sort
Sort text files
source
Run commands from a file `.'
split
Split a file into fixed-size pieces
ssh
Secure Shell client (remote login program)
strace Trace system calls and signals
su
Substitute user identity
sudo
Execute a command as another user
sum
Print a checksum for a file
symlink
Make a new name for a file
sync
Synchronize data on disk with memory
t
tail
Output the last part of files
tar
Tape ARchiver
tee
Redirect output to multiple files
test
Evaluate a conditional expression
time
Measure Program running time
times
User and system times
touch
Change file timestamps
top
List processes running on the system
traceroute
Trace Route to Host
trap Run a command when a signal is set(bourne)
tr
Translate, squeeze, and/or delete characters
true
Do nothing, successfully
tsort
Topological sort
tty
Print filename of terminal on stdin
type
Describe a command
u
ulimit
Limit user resources
umask
Users file creation mask
umount Unmount a device
unalias
Remove an alias
uname
Print system information
unexpand
Convert spaces to tabs
uniq
Uniquify files
units
Convert units from one scale to another
unset
Remove variable or function names
unshar
Unpack shell archive scripts
until
Execute commands (until error)
useradd
Create new user account
usermod
Modify user account
users
List users currently logged in
uuencode
Encode a binary file
uudecode
Decode a file created by uuencode
v
v Verbosely list directory contents (`ls -l -b')
vdir Verbosely list directory contents (`ls -l -b')
vi
Text Editor
vmstat
Report virtual memory statistics
w
watch
Execute/display a program periodically
wc
Print byte, word, and line counts
whereis
Report all known instances of a command
which
Locate a program file in the user's path.
while
Execute commands
who
Print all usernames currently logged in
whoami
Print the current user id and name (`id -un')
Wget Retrieve web pages or files via HTTP, HTTPS or FTP
write
Send a message to another user
x
xargs
Execute utility, passing constructed argument list(s)
yes
Print a string until interrupted
.
Run a command script in the current shell
###
Comment / Remark
分享到:
相关推荐
Bash脚本文件名:update_linux_system.sh上次修改时间:2021年2月7日,星期日,19:03说明:自动化Linux系统更新程序(可与Cron一起使用)请在/ etc / environment上将密码设置为PASS =,这是为了可能需要sudo的命令...
linux命令和shell脚本的提示常用的linux命令和shell脚本注意: MarkDown由[stackedit]( )完成常见环境变量USER-您当前的用户名。 SHELL –当前命令外壳程序的路径(例如/ bin / bash )。 PWD –当前工作目录。 ...
我构建了hadoop集群。我们一定会写一个shell脚本去每一个节点上去jps,查看每个节点的进程情况。 原先以为shell很简单: #!/bin/bash #查看每个节点运行情况 for((host=101;...-bash: jps: command not found
高级Bash脚本编程指南(一) 目录 ++++ 第一部分. 热身 1. 为什么使用shell编程 2. 带着一个Sha-Bang出发(Sha-Bang指的是#!) 2.1. 调用一个脚本 2.2. 初步的练习 第二部分. 基本 3. 特殊字符 4. 变量和...
cs-bash 关于BASH脚本和Linux系统的入门知识,将使该课程成为以下课程的一部分: Bash快速入门; 基本命令BASH索引为0。 #!/bin/bash每个脚本文件中都应包含一个“ shebang”以指向解释器。 或使用: bash some...
bash命令计时器 Bash扩展名,用于为每个执行的命令行打印定时信息。 用法 执行完每个命令行后,脚本将打印出总执行时间(精确到毫秒),然后是当前时间。 执行时间的格式设置为易于阅读; 例如2h 7m 42s301 。 演示...
使用export 命令传递一个变量到一个内嵌awk 的脚本中 11-19. 使用getopts 命令来读取传递给脚本的选项/参数. 11-20. "Including"一个数据文件 11-21. 一个没什么用的,source 自身的脚本 11-22. exec 的效果 11-23. ...
该软件包为任何命令提供了一种创建bash完成脚本的简便方法,并且为安装/取消完成提供了一种简便方法。package complete是bash完成和Go的所有功能。 主要开发工作是在master分支上完成的,请点击链接查看最新的dat...
一些 bash 工具来简化脚本编写。 目标 bash 版本:4.1 用法 终端: git clone git@github.com:panta82/bash-tools.git touch myscript.sh chmod +x myscript.sh nano myscript.sh 我的脚本.sh: THIS_DIR= " $( ...
用命令行参数bargs包装您的bash脚本用命令行参数包装您的bash脚本厌倦了这样做-linuxcommand或问自己如何在Bash中轻松解析命令行参数? 伟大的! 我也是! 使用此脚本用命令行参数来包装bash脚本,而无需花力气。...
Bash变得更容易:一个简单的IDE /调试器,用于编写,调试和执行单个命令和简短脚本。 如果您偶尔是Bash的苦苦挣扎的用户,或者不是那么难上手的用户,那么此程序将为您提供帮助。 在Linux或Windows Subsystem for ...
如Linux中的命令、Shell脚本的写法、Shell语言的知识。 command目录 保存了bash shell中常见的一些命令的使用方法,其中每个文件讲述一个命令。文件中包括命令的功能、可用的选项、使用方法。 该路径下文件的详细...
CMD命令:开始->运行->键入cmd或command(在命令行里可以看到系统版本、文件系统版本) 命令大全 1. gpedit.msc-----组策略 2. sndrec32-------录音机 3. Nslookup-------IP地址侦测器 ,是一个 监测网络中 DNS...
因为我在linux环境下执行shell脚本时sqlldr命令和sqlplus命令是正常执行的,没有任何问题,但是在java代码中调用脚本时却报错,所有排除了其他原因,只可能是环境变量的问题, 于是我把oracle的所有环境变量直接复制...
gallery.sh Bash脚本,用于生成静态Web画廊。 无需服务器端程序(即PHP,MySQL)。 概述gallery.sh是简单的bash shell脚本,可生成静态html缩略图(图像,照片)galleri gallery.sh Bash脚本可生成静态Web画廊。 ...
一个基于bashdb脚本的bash调试器GUI前端(bashdb现在包含在软件包中)。 概述 这是一个简单的bashdb调试器前端。 对于学习bash shell用法和编写简单脚本很有用。 有用的提示:shellcheck扩展在调试之前发现常见的...
使用Golang运行bash脚本 安装 高朗 $ go get -u github.com/clarketm/go-bash-wrapper 用法 # Basic usage $ go-bash-wrapper ~ /path/to/script # Forward command line arguments $ go-bash-wrapper ~ /path/to/...
signal-cli.bash:两个Bash脚本使signal-cli便于交互使用
要使用该脚本,请运行: root@promg-2n-a-dhcp85:~/ovs_command_comp# 。 ovs-command-compgen.bash 通过多轮优化,不应有明显的显示延迟。 ;D 支持的命令:ovs-appctl、ovs-ofctl、ovs-dpctl、ovsdb-tool *限制...
$ ./run.sh Usage: run.sh <user> <host> [command | recipeFilePath]介绍RemotoIT是执行服务器管理的普通老式Bash(POB)脚本。 目前,它已经在OSX / Ubuntu中作为客户端进行了测试,并在Ubuntu / Solaris中作为...