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

Ubuntu 15.10 (Wily Werewolf) to Ship with OpenStack Liberty

Canonical's James Page posted an interesting message on the Ubuntu mailing list, informing all Ubuntu developers about the steps they need to take in order to update the OpenStack cloud software to version 2015.2.0 (Liberty) in Ubuntu 15.10. Read more

Mark Shuttleworth Details Ubuntu 15.10 Highlights [VIDEO]

Ubuntu developers are closing in on the next major release, with the Ubuntu 15.10 Wily Werewolf set to debut on October 22. Ubuntu 15.10 is in many respects an incremental release ahead of the 16.04 Long Term Support release in 2016. Among the key innovations in 15.10 is wider use of the Snappy technology for packaging, though it won't replace the core .deb packaging system anytime soon, if ever. Read more

Improving Security for Bugzilla

Openness, transparency, and security are all central to the Mozilla mission. That’s why we publish security bugs once they’re no longer dangerous, and it’s why we’re writing a blog post about unauthorized access to our infrastructure. We have notified the relevant law enforcement authorities about this incident, and may take additional steps based on the results of any further investigations. Read more

RHEL 7.2 has an updated kernel target

As mentioned in the beta release notes, the kernel in RHEL 7.2 contains a rebased LIO kernel target, to the equivalent of the Linux 4.0.stable series. This is a big update. LIO has improved greatly since 3.10. It has added support for SCSI features that enable VMWare VAAI support, as well as data integrity (DIF), and significant iSER work, for those of you using Infiniband. (SRP is also supported, as well as iSCSI and FCoE, of course.) Read more