最近经常用的一些linux命令,mark一下,免得每次都要google一下用法。
![偷笑](http://static.blog.csdn.net/xheditor/xheditor_emot/default/titter.gif)
- Linux Users (http://www.ahinc.com/linux101/users.htm)
useradd - Adding a new user
usermod - Modifying existing user
userdel - Deleting a user
passwd - User's Password
Where user and group information stored
su - Switch User
- Linux Permissions(http://www.ahinc.com/linux101/permission.htm)
Permissionschmod - Changing Permissionschown - Changing Ownerchgrp - Changing Group
- Howto: Linux Add User To Group(http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/)
useradd Example - Add A New User To Secondary Groupuseradd example - Add a new user to primary groupusermod example - Add a existing user to existing group
- Howto: Linux creating user account under group(http://www.cyberciti.biz/faq/howto-linux-freebsd-unix-create-user-account-under-group/)
Task: Make sure group sales existsTask: Add a new user tom to group sales
- Remove Linux User From a Secondary Group ( Supplementary Groups )(http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/)
Step # 1: Find out user group identityStep # 2: Remove user from printer group
- how-to-kill-the-process-running-on-specific-port-in-linux(http://www.linuxquestions.org/questions/linux-general-1/how-to-kill-the-process-running-on-specific-port-in-linux-578408/) , 延伸阅读lsof(http://heikezhi.com/2011/06/19/swiss-army-knife-of-unix-debugging-lsof/)
- how-to-use-wall-to-send-broadcast-message-on-linux(http://www.go2linux.org/how-to-use-wall-to-send-broadcast-message-on-linux)