Skip to content

Useful linux terminal commands

Open the terminal in Jupyter lab under File > New > Terminal.

Action command
List directory contents ls -lh
Make directory mkdir directory_name
Copy file cp source destination
Move file mv source destination
Change working directory cd new_directory
Directory above ..
Print current working directory pwd
Delete file rm file_name
Delete a directory rm -r dir_name
Clear terminal contents clear
Find the binary for a command which program_name
Get Python version python --version
Get memory use summary free -h
See per-process resource utilization top or htop