|
1358.
|
|
|
Most operating systems, including Ubuntu, have two types of user interfaces. The first is a graphical user interface (\acronym{GUI}). This is the desktop, windows, menus, and toolbars that you click to get things done. The second, and much older, type of interface is the command-line interface (\acronym{CLI}).
|
|
|
type: document
|
|
|
|
(no translation yet)
|
|
|
|
Located in
./advanced-topics/advanced-topics.tex
:15
|
|
1359.
|
|
|
The \emph{terminal} is Ubuntu's command-line interface. It is a method of controlling some aspects of Ubuntu using only commands that you type on the keyboard.
|
|
|
type: document
|
|
|
|
(no translation yet)
|
|
|
|
Located in
./advanced-topics/advanced-topics.tex
:17
|
|
1360.
|
|
|
Why would I want to use the terminal?
|
|
|
type: subsection{#2}
|
|
|
|
(no translation yet)
|
|
|
|
Located in
./advanced-topics/advanced-topics.tex
:37
|
|
1361.
|
|
|
You can perform most day-to-day activities without ever needing to open the terminal. However, the terminal is a powerful and invaluable tool that can be used to perform many useful tasks you might not be able to accomplish with a \acronym{GUI}. For example:
|
|
|
type: document
|
|
|
|
(no translation yet)
|
|
|
|
Located in
./advanced-topics/advanced-topics.tex
:21
|
|
1362.
|
|
|
Troubleshooting any difficulties that may arise when using Ubuntu sometimes requires you to use the terminal.
|
|
|
type: itemize
|
|
|
|
(no translation yet)
|
|
|
|
Located in
./advanced-topics/advanced-topics.tex
:45
|
|
1363.
|
|
|
A command-line interface is sometimes a faster way to accomplish a task. For example, it is often easier to perform operations on many files at once using the terminal.
|
|
|
type: itemize
|
|
|
|
(no translation yet)
|
|
|
|
Located in
./advanced-topics/advanced-topics.tex
:30
|
|
1364.
|
|
|
Learning the command-line interface is the first step towards more advanced troubleshooting, system administration, and software development skills. If you are interested in becoming a developer or an advanced Ubuntu user, knowledge of the command-line will be essential.
|
|
|
type: itemize
|
|
|
|
(no translation yet)
|
|
|
|
Located in
./advanced-topics/advanced-topics.tex
:34
|
|
1365.
|
|
|
Opening the Terminal
|
|
|
type: subsection{#2}
|
|
|
|
(no translation yet)
|
|
|
|
Located in
./advanced-topics/advanced-topics.tex
:29
|
|
1366.
|
|
|
\marginnote{The \emph{terminal} gives you access to what is called a \emph{shell}. When you type a command in the \gls{terminal} the \gls{shell} interprets this command, resulting in the desired action. Different types of shells accept slightly different commands. The most popular is called ``bash,'' and is the default shell in Ubuntu.} You can open the terminal by clicking \menu{Applications \then Accessories \then Terminal}.
|
|
|
type: document
|
|
|
|
(no translation yet)
|
|
|
|
Located in
./advanced-topics/advanced-topics.tex
:37
|
|
1367.
|
|
|
When the terminal window opens, it will be largely blank apart from some text at the top left of the screen, followed by a blinking block. This text is your \gls{prompt}\dash it displays your login name and your computer's name, followed by the current directory. \marginnote{In \acronym{GUI} environments the term ``folder'' is commonly used to describe a place where files are stored. In \acronym{CLI} environments the term ``directory'' is used to describe the same thing and this metaphor is exposed in many commands (\ie, \code{cd} or \code{pwd}) throughout this chapter.} The tilde (\textasciitilde) means that the current directory is your home directory. Finally, the blinking block is the \gls{cursor}\dash this marks where text will be entered as you type.
|
|
|
type: document
|
|
|
|
(no translation yet)
|
|
|
|
Located in
./advanced-topics/advanced-topics.tex
:47
|