Solved

linux, PS1 settings : how to customize it for font size

Posted on 2014-11-24
5
446 Views
Last Modified: 2014-12-01
I have below setting for my PS1.


export PS1="\e[1;33m\u: \w $ \e[m"


I would like to increase PS1 values - to increase font.
please advice how to custmise for the same
0
Comment
Question by:mac_g
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 4

Assisted Solution

by:popesy
popesy earned 333 total points
ID: 40461773
Hi

Do you need this for the console or are you using a remote access utility like putty etc.?

If it is the latter, you can set your font/appearance for the terminal window from within the utility itself.

Cheers, JP.
0
 
LVL 19

Assisted Solution

by:jools
jools earned 167 total points
ID: 40461799
You cant set font size in a PS1 variable, you should do this on the terminal options
0
 

Accepted Solution

by:
mac_g earned 0 total points
ID: 40461906
NOT console, only  PS1.

please let me know navigation for the same
0
 
LVL 4

Assisted Solution

by:popesy
popesy earned 333 total points
ID: 40461951
Hi mac_g

Sorry, do you mean that you only want to set the font using the PS1 variable?

There is a way of setting the font other than the terminal too; I haven't used this method before, but it seems that the 'setfont' command exists to allow you to set the console font using a predefined console font file, like;

setfont /path/to/fontfile

Open in new window


You can set this up in the default profile/bashrc to configure your environment.

If you need the terminal window utility option (like putty) please say, it is a trivial task.


Cheers, JP
0
 

Author Closing Comment

by:mac_g
ID: 40473314
EE >>
Provide a Reason Please state your reason for accepting your own comment as the solution. If additional information would assist others in understanding your solution, please add that information below
<<


I have not selected my name still displaying above message.
please fix this issue
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question