Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-03-2004, 07:28 AM   #1
Registered: Feb 2004
Location: Belgium
Distribution: Suse 9.1 Pro / Gentoo
Posts: 114

Rep: Reputation: 15
Editing properties of your terminal/shell ?

I was wondering on how i can edit the properties of my shell or terminal whatever you want to call it.
Now my shell shows the complete path to the directory i,m working in of the complete path starting from my home directory but this sometimes can be e very long string so how can i edit it so it only shows the last directory your working in or a maximum amount of characters?
I know it's possible somehow but i don't know how, I switched from mandrake to suse and in mandrake it was only showing the last directory.

Old 10-03-2004, 07:41 AM   #2
Registered: Apr 2004
Location: Camporotondo Etneo, Sicily
Distribution: SuSE 8.2 SuSE 9.1 Fedora C1 Slackware 10.1 Knoppix 3.9
Posts: 174

Rep: Reputation: 30
Try giving a look in .bashrc directory in your home directory.
Old 10-03-2004, 08:26 AM   #3
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
You can find a list of Bash prompt options here: - look at the "Customization Options" section.

Last edited by Skyline; 10-03-2004 at 08:29 AM.
Old 10-03-2004, 11:30 AM   #4
Registered: Feb 2004
Location: Belgium
Distribution: Suse 9.1 Pro / Gentoo
Posts: 114

Original Poster
Rep: Reputation: 15
Thanks a combination of the two did the trick.
I only had to edit the PS1 variable.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing /etc/DIR_COLORS does not change colours in terminal ethics Linux - General 6 02-27-2014 02:56 AM
Editing files from shell scripts? SirRobbin Linux - Newbie 6 03-23-2004 11:27 AM
Editing Files Via Shell mattsmith999 Linux - General 2 02-15-2004 01:16 PM
Editing stored Terminal commands ShaanAli Linux - Software 2 01-13-2004 08:55 AM
Editing a text file in shell Lotmr Linux - Software 5 06-24-2003 01:12 PM

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration