Skip to content

Instantly share code, notes, and snippets.

@refactormyself
Last active August 16, 2021 08:50
Show Gist options
  • Save refactormyself/aed40a46333085e8a78972d476be00cb to your computer and use it in GitHub Desktop.
Save refactormyself/aed40a46333085e8a78972d476be00cb to your computer and use it in GitHub Desktop.
Linux Stuffs
    60
    saheed@saheed-deb:~$ sudo sysctl vm.swappiness=sudo sysctl vm.swappiness=100
    [sudo] password for saheed: 
    sysctl: setting key "vm.swappiness": Invalid argument
    vm.swappiness = sudo
    sysctl: cannot stat /proc/sys/sysctl: No such file or directory
    vm.swappiness = 100

  1. extract a tar file:

tar -xvf file.tar tar -xzvf file.tar.gz tar -xjvf file.tar.bz2 -x : Extract a tar ball. -v : Verbose output or show progress while extracting files. -f : Specify an archive or a tarball filename. -j : Decompress and extract the contents of the compressed archive created by bzip2 program (tar.bz2 extension). -z : Decompress and extract the contents of the compressed archive created by gzip program (tar.gz extension).

ref: https://www.cyberciti.biz/faq/tar-extract-linux/

d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment