uptime … time, how long is the machine running, average loads
top … running processes
wall … send message to all user (works over ssh too). Run: wall --> enter --> write message --> Ctrl-D
dpkg -L package_name … where the package_name is installed
which command_name … where the command_name is run from
Rscript -e 'print("Hello World")' … run R directly from shell
> output.log … output screen into output.log file
head -n 4 reboots.csv | tail -n 3 … pipe ( | ) makes output of first command to be input of the following one (take first 4 lines from file reboots.csv and then take last 3 of those lines)
find /usr -name *fastq … command line file search (look in /usr for files ending fastq)
find . -name "._*" -type f -delete … find and delete files starting "._" recursively in a current folder (".")
find . ! -name "*.txt" -type f … inverse find (all files not ending ".txt")
sudo chmod -R a+rwx /usr/lib/R … yes this basic :-)
wc -l file.txt … how many (l)ines in file.txt
du -sh * … /remember as doosh/, disk usage of files/dirs
df -h … free space on disk
sudo !! … execute last command as root
ls -laFR … list files recursively (with folders contents)
The Shell lecture on Software Carpentry, from Greg Wilson.
Data processing utils from Alexandre Matos Martins.
Useful Unix/Linux One-Liners for Bioinformatics from Stephen D. Turner.
I know this is not Linux ... :-)
Feature Branch Workflow to use in projects? Branches for features and pull requests for review?
BIO...