Created
May 25, 2012 21:57
-
-
Save Mouad-BGD/2790821 to your computer and use it in GitHub Desktop.
linux commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| groups username check the groups of that user | |
| useradd -G {group-name} username add user to a group | |
| gpasswd -d username groupname remove a user from a group |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| netstat -tap | grep https test if the server is listening to the https port | |
| apachectl configtest test if the config syntax is ok |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Linux commands | |
| -------------- | |
| chown username:usergroup somefile/dir change the owner of a folder or file | |
| chown -R username somedir change the owner of directory and sub-files/dirs | |
| chmod <<PERMISSIONS>> FOLDER_NAME change permission | |
| cp -r dir/* another/dir coppy all the files from one dir to another | |
| rm -rf force delete withou prompting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment