Skip to content

Instantly share code, notes, and snippets.

@VessoVit
Last active December 18, 2015 22:59
Show Gist options
  • Save VessoVit/5858327 to your computer and use it in GitHub Desktop.
Save VessoVit/5858327 to your computer and use it in GitHub Desktop.
Remove recursively a directory. This will wipe all the content in the folder.
###Linux
$ rm -r directory
Change user password
$ passwd username
First time SSH key generation
$ ssh-keygen -t dsa
User groups and permissions
$ chown -v username somefile
$ chnage ownership of files
$ chown -Rv username somedir
$ chgrp -Rv usergroup somedir
Mapping the filesystem
$ Alias /path/to/dir/ /needed/location/
Run processes on background
$ nohup process/command &
###Debian
(purge) uninstall apt packages
apt-get --purge remove <package>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment