Definition: The terminal (or console) is a command-line interface used to interact with UNIX/Linux systems. You enter commands, and the system responds back with output. It's a way to communicate directly with the operating system.
Important Concepts:
bash
being one of the most popular.ls
(list files), cd
(change directory), and pwd
(print working directory).cd
command, the directory you want to navigate to is the argument.-
. For example, ls -l
lists files in "long format."ls
List files and directories.
ls -l
: List in long format, showing file permissions, number of links, owner, group, size, and time of last modification.
bash
drwxr-xr-x 5 user staff 160B Sep 9 09:50 Documents/
ls -a
: List all entries, including hidden ones (those starting with a dot).
ls -lh
: List in long format with human-readable sizes (e.g., 1K
, 234M
, 2G
).
cd