Skip to content

Instantly share code, notes, and snippets.

@akumbhani66
Last active February 22, 2021 10:34
Show Gist options
  • Save akumbhani66/19420e6d81ac3847ebaf161677d0014d to your computer and use it in GitHub Desktop.
Save akumbhani66/19420e6d81ac3847ebaf161677d0014d to your computer and use it in GitHub Desktop.
  1. copy directory cp -R --dir

  2. Find files find / name *.js mlocate - ubuntu locate - mac

  3. check space df -h

  4. check size of specific file. du -sh file

    • with sorting ```du -hs * | sort -rh | head -5``
  5. check RAM status.

    • free -m (To check in MB)
    • free -g (To check in GB)
    • free (To check in KB)
  6. find running process ps aux | grep process_name

  7. SCP scp me@host:/path/to/file ~

  8. Kill service on specific port(ex. port 80) sudo fuser -k 80/tcp

  9. check ubuntu version lsb_release -a

  10. Check services runnin on specific port. sudo netstat -plant | grep 80

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