Toggle navigation
TechnoWikis.com
Email or Username
Password
Remember
Login
Register
|
I forgot my password
All Activity
Questions
Hot!
Pending
Ask a Question
Privacy Policy
Contact
Customize the Ubuntu Linux terminal
Home
Tutorials
Linux / Unix
Customize the Ubuntu Linux terminal
(adsbygoogle = window.adsbygoogle || []).push({});
+4
votes
223
views
Customize the Ubuntu Linux terminal
asked
Jun 23, 2019
in
Linux / Unix
by
backtothefuture
(
552k
points)
reopened
Jun 23, 2019
|
223
views
answer
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Add answer
Cancel
1
Answer
+5
votes
Best answer
The first thing to know is that the terminal uses profiles where it will store the configuration changes made.
To create a profile we must go to the menu and choose "edit", "profiles" and select "new", assign a name to the new profile and choose to create.
Now we can modify the configuration of the profile called "New".
Change the typeface
To change the font type choose the general tab and select the font type and size in the "Font" section.
In this tab we can also change the name of the profile and the number of columns and lines that will be displayed in the terminal.
Change the cursor type
It is possible to choose the shape of the course by modifying the option "Cursor shape".
Change text colors
In the colors tab we can modify the color of the text, the background color of the text manually or by choosing a default color scheme.
Change the background
The "Background" tab allows us to change the background color of the terminal, place a background image and convert the transparent background.
Change the scroll bar (Scroll bar)
The Scrolling tab allows us to choose which side the scroll bar will be displayed and the number of lines it will store.
With these changes we can obtain a visual, different and personalized, now we will add some features to the so-called "Prompt".
What is the prompt?
The prompt is the text that appears before the "$" sign each time you enter a command.
By default in the terminal something like this will appear:
Change the prompt
To modify the prompt we open a terminal and write the command "export PS1 =" du @ hw $ "and the prompt will be displayed like this:
Where:
d
Displays the date with the format "day of the week, month and day number"
u
Name of the current user.
h
Displays the name of the host.
w
Name of the current directory.
$
If you are superuser shows a # if not, shows a $
In addition to these variables, the following can be used:
H
Displays host name and domain
n
Line break
r
Returns to the beginning of the line
s
Show the name of the command interpreter
t
Displays the time in 24-hour format
T
Displays the time in 12-hour format
@
Display the time in 12-hour format with am or pm indicator
v
Version of the command interpreter
V
Distribution of the command interpreter
W
Name of the current directory trimmed
!
Number in the history of the typed command
#
Typed command number
Try several combinations according to the information that is useful to have.
Here are some examples:
The command:
export PS1 = "
T
w
$ "
will show:
The command:
export PS1 = "
or
w
d
@
$ "
will show:
Finally it is also possible to change the color of the text in the prompt by adding the color code corresponding to the previous commands.
Color / Code
Black [e [0; 30m]
Dark gray [e [1; 30m]
Red [e [0; 31m]
Light red [e [1; 31m]
Green [e [0; 32m]
Light green [e [1; 32m]
Brown [e [0; 33m]
Yellow [e [1; 33m]
Blue [e [0; 34m]
Light blue [e [1; 34m]
Purple [e [0; 35m]
Light purple [e [1; 35m]
Cyan [e [0; 36m]
Clear Cyan [e [1; 36m]
Light gray [e [0; 37m]
White [e [1; 37m]
With these changes you can customize the terminal to your taste and needs.
answered
Jun 23, 2019
by
stackoverflow
(
3.5m
points)
edited
Jun 23, 2019
ask related question
comment
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Add comment
Cancel
Related questions
+4
votes
1
answer
Which is the best terminal programs for Linux
asked
Jun 2, 2020
in
Linux / Unix
by
backtothefuture
(
552k
points)
|
335
views
+5
votes
1
answer
How to install Spotify Ubuntu 21.04 | Terminal
asked
Nov 12, 2020
in
Linux / Unix
by
backtothefuture
(
552k
points)
|
332
views
+3
votes
1
answer
Uninstall Google Chrome Ubuntu Terminal
asked
Oct 19, 2020
in
Linux / Unix
by
backtothefuture
(
552k
points)
|
338
views
+3
votes
1
answer
Uninstall Firefox Ubuntu Terminal | Commands
asked
Oct 19, 2020
in
Linux / Unix
by
backtothefuture
(
552k
points)
|
664
views
+4
votes
1
answer
Install Hyper Terminal Ubuntu 20.04
asked
Sep 18, 2020
in
Linux / Unix
by
backtothefuture
(
552k
points)
|
566
views
Sponsored articles cost $40 per post. You can contact us via
Feedback
All categories
Tutorials
7.5k
Microsoft
1.9k
Android
1.4k
Security
120
Linux / Unix
543
Internet
757
Virtualization
104
Apple
611
Networks
64
Other Devices
321
Other Applications
184
Hardware
19
Development
53
Digital Marketing
47
Databases
14
Graphic Design
30
Guides
794
GraphicDesign
54
Networking
4
PlayStation
186
Gaming
55
Linux/Unix
85
Manzana
33
Otherdevices
38
Otherapps
49
Digitalmarketing
39
Safety
1
Developing
2
Help
685
Social Networks
34
Android Tutorial
549
iPhone Tutorial
267
News
17
Social
6
Phone
11
Telephone
9
Applications
167
Smartphones
3
Cell Phones
11
Applications
25
Travels
6
Photo
21
Education
18
Games
25
Internet
14
Music
8
Technique
10
Video
6
Windows
5
Apple
2
Cell Phones
3
TikTok
216
Trips
2
House
1
Operating System
5
Tips & Tricks
892
Solutions
6
Tutorials
3
FAQ
1
Applications
5
Cell Phones
2
Tutorials
4
Computers
6
Tutoriales
2
8
Technology
2
In Computers
1
In Applications
2
Tutorials Tutorials
9
Applications Applications
25
Aplicaciones Applications
4
Devices Devices
5
Tutoriales Tutorials
1
Tutorials u00a0 Tutorials
2
Applications u00a0 Applications
2
Devices u00a0 Devices
1
OS OS
1
Etc Etc
2
Most popular questions within the last 30 days
Please leave a comment about whether the solution works or not (with device model)
[X]Close
10,659
questions
10,791
answers
510
comments
3
users