Skip to content

Instantly share code, notes, and snippets.

@marcobiedermann
Last active January 20, 2020 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcobiedermann/2f47c9b66592e53decaedf9a3235f185 to your computer and use it in GitHub Desktop.
Save marcobiedermann/2f47c9b66592e53decaedf9a3235f185 to your computer and use it in GitHub Desktop.
Unix tools and how to use them

Copy file content to clipboard

cat path/to/filename | pbcopy

Count words in file

cat path/to/filename | wc -w

ifconfig

apt-get install net-tools

curl

apt-get install curl

SSH Server

apt-get install openssh-server

sudo service ssh start

Secure copy from server

scp user@host:/path/to/source path/to/destination

Secure copy to server

scp path/to/source user@host:/path/to/destination

Remote desktop server

apt-get install xrdp

Install Java

apt-get install oracle-java8-jdk

Run Java jar file

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