curl

1
2
# Print cookies to stdout
curl -c - 'http://google.com'

Change terminal directory text color

LS_COLORS=$LS_COLORS:'di=1;32:' ; export LS_COLORS

The first number is how light or dark you want the color to be, followed by a semicolon, and then the actual number of the color.

Blue = 34
Green = 32
Light Green = 1;32
Cyan = 36
Red = 31
Purple = 35
Brown = 33
Yellow = 1;33
white = 1;37
Light Grey = 0;37
Black = 30
Dark Grey= 1;30

Soure:
https://askubuntu.com/questions/466198/how-do-i-change-the-color-for-directories-with-ls-in-the-console

List files recursively with last modified date

1
find . -type f -print0 | xargs -0 ls -lt --time-style="+%F %T"

cut command

1
2
3
4
5
6
7
8
-d -d':'     # Use : as delimeter
-c -c1-3 # 1-3 characters
-c3- # 3rd character to end of line
-c-8 # start of line to 8th character
-f -f1-4,6,7 # fields 1-4, 6 and 7

cut -d':' -f1-4,6,7 test.txt

Check Linux version

1
cat /etc/os-release

Authenticating to Your Server Using SSH Keys

  • Creating SSH Keys:

    1
    $ ssh-keygen
  • Add public key to ~/.ssh/authorized_keys on target server