Skip to content

Instantly share code, notes, and snippets.

@Mouad-BGD
Created May 25, 2012 21:57
Show Gist options
  • Select an option

  • Save Mouad-BGD/2790821 to your computer and use it in GitHub Desktop.

Select an option

Save Mouad-BGD/2790821 to your computer and use it in GitHub Desktop.
linux commands
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
netstat -tap | grep https test if the server is listening to the https port
apachectl configtest test if the config syntax is ok
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