Linux Shell
We’ll delve into the introduction to Shell with usage of Linux commands, mastering file and directory manipulation, and explore various avenues for seeking assistance with Linux commands.
The command line interface serves as a potent tool for navigating your Linux system. While newcomers may initially find the graphical interface more intuitive, it often lacks the depth of functionality offered by the Linux command line, commonly referred to as the shell. This guide serves as an ideal starting point for those unaccustomed to shell usage.
As a Linux System Administrator, familiarity with shell operations is indispensable. But what exactly is a shell? The Linux shell serves as an intermediary program facilitating text-based interaction between users and the operating system. Users input commands into the shell interface and receive corresponding responses. With the shell’s capabilities, users can seamlessly traverse various system locations. Upon login, users are directed to their home directory, typically located within the system’s “/home” directory structure. Each user is assigned a unique home directory, ensuring individualised storage space for personal files and directories. This exclusive space functions akin to a personalised locker, allowing users to securely store, retrieve, and manage their data without interference from other users.
Get Saj Sah’s stories in your inbox
Join Medium for free to get updates from this writer.
Represented by the tilde symbol “~” in the command line, the home directory serves as a pivotal point of interaction within the Linux system. To execute commands within the shell, users input specific directives, initiating the execution of corresponding programs to accomplish desired tasks. For instance, the “echo” command outputs text onto the screen, with optional arguments providing additional instructions.
Command execution can also be enhanced through the utilisation of options, denoted by single letters preceded by a hyphen. These options, also known as switches or flags, modify command behaviour as per predefined criteria. Given the vast array of available options, consulting command help options or manual pages (man pages) proves invaluable when navigating unfamiliar commands.
Commands in Linux are broadly categorised as either internal or external. Internal commands are inherently integrated into the shell environment, encompassing approximately 30 essential commands such as “cd” (change directory), “export,” “mkdir” (make directory), and “pwd” (print working directory). Conversely, external commands manifest as binary programs or scripts stored in distinct system files. These commands may be preinstalled via distribution package managers or installed by users themselves.
To discern a command’s classification, the “type” command serves as a useful tool like above
ReplyForward
Add reaction





