Linux Command Line Cheatsheet - gecko-8/devwiki GitHub Wiki

Up

General

Put Linux in Debug Mode

set -x

Take Linux Out Of Debug Mode

set +x

Refresh .bashrc

source ~/.bashrc

File Management

Copy Directory and Contents

cp -r <src> <dest>

Delete Directory and Contents

rm -d -r <directory>

View Drive Usage

NOTE: -h outputs in "human-readable" values (GB, MB, etc.)

df -h

General

View CPU Usage

top
⚠️ **GitHub.com Fallback** ⚠️