Skip to main content

Linux commandline commands we often use in development

Member for

3 years 1 month
Submitted by admin on

Find out how much of the hard drive is being used.

~$ df -h

Grep is a powerful tool but remembering the commands at times does affect your ability to be productive because you don't use it all the time and to recall them can be a headache. Below are important ones I use at times

Searching a document for a word

~$ grep  or <"search term">  

Here is a list of commands the help managed your Linux machine from day to day

Find and kill a linux process from the command line

Need to remove a software process that will not go away. You might need to do it more that once,

ps aux | grep  | awk 'NR==1 {print $2}'
kill -9 (eg,firefox)>

Setup your public ssh key so you can auto login into a server

So pipes your local public ~/.ssh/id_rsa.pub andIt copies the public key to the remote server

cat ~/.ssh/.pub | ssh @ "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

Rsync from a server

When you need to copy files from server Rsync is what you neeed

rsync -azv @:/path/on/server/that/needs/copying  /path/on/local/machine
rsync -azv /path/on/local/machine/that/needs/coping @:/path/on/server