Solved

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

Posted on 2014-11-24
5
386 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

910 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now