We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ps -l : 只有列出和目前相关的进程。 ps aux: 列出所有的进程哦,注意没有 -。
ps -l
ps aux
-
test 可以有个返回值哦。 && 当前面的判断为真的时候,执行命令。 || 当前面的判断为假的时候,执行命令。 &&和||常常可以连在一起用。
test
&&
||
test -e ./p1.log &&echo "exit" || echo "not exit"; touch p1.log
$() 和原来的 ``一样,表示的要 evaluate 一下表达式的值。 ${} 只是字符串的替换,或者变量的替换。
注意: (( 和 )) 之间没有空格!!!! 但是它们中间的表达式可以有任意的空格。
((
))
declare 可以定义各种变量,比如整数。 -i选项。
declare
-i
$RANDOM 可以得到内置的一个随机数哦。
$RANDOM
all system service is under /etc/init.d directory. d stands for daemon. systemctl 可以管理 系统的service
/etc/init.d
d
systemctl
systemctl COMMAND unit
The text was updated successfully, but these errors were encountered:
No branches or pull requests
进程管理
ps -l
: 只有列出和目前相关的进程。ps aux
: 列出所有的进程哦,注意没有-
。test, && 和 ||
test
可以有个返回值哦。&&
当前面的判断为真的时候,执行命令。||
当前面的判断为假的时候,执行命令。&&
和||
常常可以连在一起用。$() 和原来的 ``一样,表示的要 evaluate 一下表达式的值。
${} 只是字符串的替换,或者变量的替换。
$(()) 和 (())
注意:
((
和))
之间没有空格!!!!但是它们中间的表达式可以有任意的空格。
declare 和普通的定义
declare
可以定义各种变量,比如整数。-i
选项。$RANDOM
$RANDOM
可以得到内置的一个随机数哦。system service
all system service is under
/etc/init.d
directory.d
stands for daemon.systemctl
可以管理 系统的serviceThe text was updated successfully, but these errors were encountered: