Hide current working directory in terminal

export PS1='\u@\h: '

That results in oli@bert: for my prompt.

If you really want something as minimalist as you ask for, try this:

export PS1='> '

You can attach that to the end of your ~/.bashrc file to have it persist between logins.

You can also get creative with some colours. Here’s what I use on my servers:

export PS1='\[\033[0;35m\]\h\[\033[0;33m\] \w\[\033[00m\]: '

Giving (it’s easier to see on a full black background):

Glossary of acceptable characters in PS1

Just to expand on Oli’s answer (and so that I have a bookmark for those short-hand symbols):

The bash prompt (stefano@linux:~$) is only the first of a couple of prompts you might see,:

PS1: The default promt you see when you open a shell

It’s value is stored in an environment variable called PS1. To see its value, type

echo $PS1

This will give you something like

0 0

Right click on the xterm icon and select properties.

Under properties click on edit.

Under edit change the default directory.


You can have several xterm icons in the panel, each

opening up to a different directory.

If you have Thunar open to a directory, you should be
able to right click and choose to "open terminal here".
You can have xterm set as your default terminal .

"applications/settings/preferred applications " will let you
chose your default terminal and browser, mail reader, terminal program
and file manager.

You can have almost any app open in a specific working directory. Frequently
the prefs for the icons are blank regarding working directory, but you can

0 0

When using the terminal in a deep folder structure sometimes the prompt can take up most of the line. Is there any way in which I can trim the working directory? I know I can do

PS1="\W >"

to only print the current directory and not the full path, but is there a way to have something like:

/home/smauel/de...ther/folder >

Other Tips. I have an Ubuntu 14.04 Live USB (32 GB). Is it possible to create a bootable .iso file from the Live USB ? how can I create a bootable ISO? It should be enough to just cat the device. If your USB is, for example, /dev/sdb, you can do: cat /dev/sdb > foo.img to restore the image to a USB disk, do: cat foo.img > /dev/sdb Note that this approach will create an image file as large as the drive itself, even if the drive is almost empty. If the drive is not 100% full and you only want an iso of the used space, use genisoimage (install it with apt install genisoimage) instead: genisoimage -o foo.iso /path/to/usb/mount/point I found...

0 0