capint
4/2/2017 - 9:50 AM

Linux >> Basic commands

Linux >> Basic commands

ls > Bacon: write the result of ls to Bacon

pwd >> Bacon: append the result of pwd (print working directory) to Bacon

grep button Corn: search "button" in file Corn

diff Corn Corn2: compare 2 files

mkdir, rmdir
touch: create a file if not existed
rm, cp, mv

sha1sum filename | grep hashresult: hash a file and compare it to a hash number. It's OK if it's red, not OK if it's white

sudo command: run command in admin mode

cat filename: print file content to console

ssh-keygen -t rsa: generaty public/private RSA keys