Notes of Shell command
来源:互联网 发布:新手网络作家怎么赚钱 编辑:程序博客网 时间:2024/06/18 13:32
命令:
# chkconfig- updates and queries runlevel information for system services
启动脚步的自动化管理
#进程管理命令
killall -term xproc
//此方法比killall -9 xproc要好。因为-9参数只释放当前进程的资源并终止它,而它的子进程都变成defunct状态,直到操作系统来销毁它们。
pgrep, pkill - look up or signal processes based on name and other attributes
=====例子:=======
[root@localhost ~]# pgrep -fl bash
2736 -bash
2796 -bash
skill, snice - send a signal or report process status
#用户管理的命令
chage - change use password expiry informatin
==========================
[root@localhost ~]# chage -l vic
Last password change : 3月 10, 2006
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
===========================
getfacl - 浏览指定文件或目录的ACL.
/etc/securetty 文件控制根用户从何处可以进行登录,如果/etc/securetty不存在,那么根用户就可以从任何地点进行登录;如果/etc/securetty存在但没有内容,根用户不可以从任何设备上登录,只能通过su或sudo进行根用户访问。
#系统日志查看
/var/run/utmp /var/log/wtmp --登录记录文件,可以用who命令来查看。
/var/log 系统日志目录
lastb, last -- show listing of last logged in users
crypt - password and data encryption
crypt is the password encryption function. It is based on the Data Encryption Standard algorithm with variations intended (among other things) to discourage use of hardware implementations of a key search.
du * -s // List the size of files and directories under current directory.
# chkconfig- updates and queries runlevel information for system services
启动脚步的自动化管理
#进程管理命令
killall -term xproc
//此方法比killall -9 xproc要好。因为-9参数只释放当前进程的资源并终止它,而它的子进程都变成defunct状态,直到操作系统来销毁它们。
pgrep, pkill - look up or signal processes based on name and other attributes
=====例子:=======
[root@localhost ~]# pgrep -fl bash
2736 -bash
2796 -bash
skill, snice - send a signal or report process status
#用户管理的命令
chage - change use password expiry informatin
==========================
[root@localhost ~]# chage -l vic
Last password change : 3月 10, 2006
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
===========================
getfacl - 浏览指定文件或目录的ACL.
/etc/securetty 文件控制根用户从何处可以进行登录,如果/etc/securetty不存在,那么根用户就可以从任何地点进行登录;如果/etc/securetty存在但没有内容,根用户不可以从任何设备上登录,只能通过su或sudo进行根用户访问。
#系统日志查看
/var/run/utmp /var/log/wtmp --登录记录文件,可以用who命令来查看。
/var/log 系统日志目录
lastb, last -- show listing of last logged in users
crypt - password and data encryption
crypt is the password encryption function. It is based on the Data Encryption Standard algorithm with variations intended (among other things) to discourage use of hardware implementations of a key search.
du * -s // List the size of files and directories under current directory.
- Notes of Shell command
- Linux--shell of "tr" command
- SHELL Notes
- shell Notes
- SHELL NOTES
- DOS command learn notes
- command shell(flume command)
- shell command
- Korn Shell Notes(II)
- korn Shell Notes(III)
- Korn Shell Notes(IV)
- Korn Shell Notes(V)
- linux shell notes
- Some Notes of QT4
- notes of Accelerate C++
- Notes of ubuntu
- Reading Notes of SICP_01
- Notes of operating system
- OpenPainter 搬家正式通告
- Windows GDI和GDI+编程实例剖析
- 正则表达式实例
- Atlas学习手记(13):使用TextBoxWatermark为TextBox加上水印效果
- 湖南人怎么拉
- Notes of Shell command
- 使用SWING编写没有修饰栏的窗口
- 李彦宏在北大2008本科生毕业典礼上的发言
- 以后对付 窗口有IP地址的情况 都这么干
- Dreamweaver 批量替换注释
- BeanUtils的copyProperties方法不能复制非public声明类的属性
- 关于vector删除操作的一点提示。
- 让单元测试“嗅出”代码的臭味
- em db control错误