Loading...
Preparing your workspace
Preparing your workspace
Preparing your workspace
An interactive, searchable cheat sheet for the most important Linux terminal commands.
List directory contents
$ ls [options] [file]Change directory
$ cd [directory]Print working directory
$ pwdCreate a new directory
$ mkdir [directory_name]Remove files or directories
$ rm [options] [file/directory]Copy files and directories
$ cp [source] [destination]Move or rename files
$ mv [source] [destination]Display Linux tasks and memory usage
$ topInteractive process viewer (better top)
$ htopReport a snapshot of current processes
$ ps [options]Send a signal to a process (usually to terminate)
$ kill [pid]Report file system disk space usage
$ df -hSend ICMP ECHO_REQUEST to network hosts
$ ping [hostname]Transfer a URL (download/upload)
$ curl [url]Non-interactive network downloader
$ wget [url]OpenSSH remote login client
$ ssh user@hostChange file mode bits
$ chmod [permissions] [file]Change file owner and group
$ chown [owner]:[group] [file]Print lines matching a pattern
$ grep [pattern] [file]Concatenate files and print to stdout
$ cat [file]Output the last part of files
$ tail -f [file]Simple text editor
$ nano [file]