Language Selection

English French German Italian Portuguese Spanish

A Sample Function inline with Bashprompt

Filed under
HowTos

The bash prompt has built in commands that use escape charachter syntax. By default a lot of packages ship bash with a default that shows the hostname and relative path. The escape sequences for all users is usually kept in /etc/bashrc or a similar system location. The sequences themselves might look something like this:
PS1="[\u@\h:\w]\$

The above settings would look like:
[username@hostname:current_working_directory]$

Or a real example:
[jrf@vela:~/www/systhread.net/texts]$

As noted in theBash Prompt HOWTO commands can be executed everytime the RETURN sequence is sent to the shell interpreter. For this example the Bash Prmpt HOWTO provides ample demonstration of some commands:

More Here




More in Tux Machines

10 Reasons Why I Switched To Telegram Messenger

Whatsapp may be the best player in the game when it comes to instant messaging apps, but Telegram Messenger is the entire game itself. Read
more

How To Install Wine And Run Windows Apps In Linux

​All kinds of software are currently available on Linux but every now and then, there is that Windows software or Game which is not available or has no equivalent on Linux Wine makes it possible to run those Windows programs and Games on your Linux desktop. So let’s look at how to install Wine on Linux and run Windows apps on Linux desktop. Read
more

OSS Leftovers

Today in Techrights