Terminal commands
Terminal runs vsh, a small built-in shell. Type help to list its commands.
Files#
| Command | Description |
ls [-l] | List a directory |
cd, pwd | Change or print the working directory (~ is /Users/user) |
cat, write | Print a file / write text to a file |
mkdir, touch, rm, mv, cp | Create, remove, move and copy |
tree | Show a directory tree |
open | Open a file in its app (Music, Lens, Quill…) |
System#
| Command | Description |
uname, uptime, date | System name, uptime, and the date in your time zone (date -u for UTC) |
free, ps | Memory usage and running tasks |
lspci, dmesg | PCI devices and the kernel log |
neofetch | System summary |
clear, history | Clear the screen; show command history |
Network#
| Command | Description |
ifconfig | Interface address, gateway and DNS server from DHCP |
ping | Send ICMP echo requests |
nslookup | Resolve a name with the built-in DNS client |
curl [-I] | Make HTTP/HTTPS requests; -I shows headers and TLS details |
Other#
| Command | Description |
echo | Print arguments |
apps | List installed apps |
theme [dark|light] | Switch the system appearance |
wallpaper N | Pick wallpaper number N |
reboot, shutdown | Restart or power off |