User Tools

Site Tools


programming:terminal

Linux/Unix help
here are two convenient bash cheat sheets
https://github.com/remigiusz-suwalski/programming-cheatsheets/blob/master/bash/bash.pdf
https://learncodethehardway.org/unix/bash_cheat_sheet.pdf

Welcome to a terminal! A terminal is a way to navigate your file system as well as call programs. It is very important that you know how to navigate a file system this way as well as be completely aware of where you are in the file system while executing commands.

pwd

This command tells you the current directory you are in.

cd

This command requires a second argument that is either a absolute or relative path. A relative path is -relative- to where you currently are in the file structure. You can name a directory that is currently in your directory to move to it, or use “..” to move to the parent directory.

You can chain these “jumps” as much as you want, moving up and down the file system. An absolute path is a path to an explicitly located file or folder. No matter where you are in the file system, an absolute path will get you there. (if it exists)

ls

This command lists the contents of the directory that you are in.

mkdir

This command creates a directory with the given name in the current directory you are in.

file creation The simplest way to create a file is to use the “touch” command, but you can also create a file by using your command line text editor of choice.

rm

This command removes a file or set of files.

rmdir

This command removes a directory. This path may be absolute or relative.

Return to the Programming Main Page

programming/terminal.txt · Last modified: 2019/04/01 20:42 by tima