Useful Linux Terminal commands


I search enough for useful Linux terminal commands, I usually rely on command history, but thought I’d start recording them here.
Here are a couple for starters…

Search recursive folders for files containing keywords, returning file name
grep -r -l "linux"

Search command history for keywords, history number returned
history | grep linux

Remove history line 2001
history -d 2001

Run code in background from terminal – I can’t believe that I’ve been using Linux for ~13 years and have only just found this; just add & to the end of the string!
[whatever code you're running] &

Leave a Reply:

Your email address will not be published. Required fields are marked *

10 − 7 =