simplilearn.com

du

du

du -m

du -g

du *

du -h <directory name>

du -ah <directory name>

df

df

df -h

df <directory name>

basename

basename /Users/Ghost/file.txt

basename /Users/Ghost/, output: Ghost

dirname

dirname /Users/Ghost/file.txt, output: /Users/Ghost/

ps

ps ax

ps axww

top

top

kill

kill <PID>

kill -STOP <PID>

kill -CONT <PID>

kill -KILL <PID>

kill -INT <PID>

killall

jobs

jobs -l

sample output: [1]+ 12554 Stopped (tty output): 22top

fg 1

bg

top

‘press’ ctrl-Z

jobs

bg 1

Note: Remember to use the man command for more intel on a particular command.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store