Maximum PC

THE TERMINAL

-

While Ubuntu’s Unity desktop provides a familiar point-and-click environmen­t for day-to-day tasks, it’s no match for the power and versatilit­y of the Linux shell, the underlying command-line environmen­t. And thanks to the Terminal, you can interact with the shell without leaving the desktop.

The shell utilizes a language called BASH to run specific commands using a series of tools. Each command follows the same basic structure:

$ utility command -option

The “utility” bit is the tool you wish to run—for example, “cd” to change directory, or “apt-get” to run the package management tool. Some utilities can be run on their own—type “ls” to get a basic list of all files and folders in a directory, for example.

If you add a “command” to the utility, you can specify what you want that utility to do:

$ apt-get install program

This instructs the package management tool to install the named program. The “-option” section is where you specify preference­s using “flags.” Each flag is preceded by one (-) or two (--) dashes. For example, to get more detailed informatio­n about the contents of the current folder, type:

$ ls -l

The “-l” flag ensures you get extra snippets, such as file permission­s and owner, plus the date it was last modified, and its size in bytes.

Newspapers in English

Newspapers from United States