The Unix Command Line | Jim Reevior
-
Upload
oomph-inc -
Category
Technology
-
view
135 -
download
1
description
Transcript of The Unix Command Line | Jim Reevior
Unix Commands for the Everyday Web Developer
Jim ReeviorEveryday Web Developer
Some Ground Rules
I am not an expert.These are the commands I use on a daily basis and have the most understanding. There are tons more commands out there.
What I'm going to cover
● Getting around● Getting elevated● Getting stuff● Getting info● Getting creative
Getting Around
cdcd ➟ Go to Home folder
ls
Permissions
chmod & chown
chown user:group file (or directory)
ln
sshssh gets you to a remote server securely.the command line gets fun when you get to mess with another machine
Couple other ssh related commands:ssh-keygen ➟ Create a private and public key for connecting to a remote server without a password
ssh-copy-id ➟ Copy a public key to a remote server.
ssh config file
The config file allows for easier ssh connections. Especially if there is a unique port or different key file Host *
IdentitiesOnly yesIdentityFile /Users/jreevior/.
ssh/xander
Host sta.oomphcloudHostname sta.oomphcloud.comPort 22User jreevior
screen
● Creates a terminal within the terminal.● It allows a remote session to continue running even if the terminal is disconnected.● Multiple "screens" can be created.
Getting elevated
sudo
Getting Stuff...
mysql
mysqldump
tar
...from here to there
cp
mv
rm
scp
Getting info
du
df
more and less
Getting creative
vim: http://www.openvim.com/tutorial.htmlbashrc screenrcvimrcbash scripting
http://explainshell.com/