08-14-2008
add this in your .profile file then logout and and login
export PS1='$LOGNAME-$PWD>'
or
export PS1="`tput smso`$LOGNAME@`hostname``tput rmso`-"'$PWD> '
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
We all know that pwd (or echo $PWD) gives us the present working dir as output.... but my doubt is that I'ld like to know how to get the present working folder - I mean - name of the current folder alone.. using pwd command I get the full folder name (right from root path)... I need to know... (2 Replies)
Discussion started by: mohanprabu
2 Replies
2. UNIX for Dummies Questions & Answers
Home directory mounted on one local system as /home/username, same directory mounted on a remote system as /home/engr/username.
How to use command to use remote host pwd. For example
rsh <remote host> ls -l ~pwd (2 Replies)
Discussion started by: bugsandbunny
2 Replies
3. UNIX for Advanced & Expert Users
Can anyone explain this in detail ...
echo ${PWD#${PWD%/*/*}/}
Thanks in Advance (1 Reply)
Discussion started by: sakthi.abdullah
1 Replies
4. UNIX for Advanced & Expert Users
We are using software (Pegasys) which runs on SunOS 5.8 and reads images from a Philips nuclear camera. The software is designed to run from the console. I need to be able to capture the images it produces on the display. The caveat is that I cannot use the X Windows display because the X Server... (3 Replies)
Discussion started by: sreyes27
3 Replies
5. UNIX for Dummies Questions & Answers
:confused:Hi
This was installed on the Linux box a few weeks back by a guy that no longer works for us. All worked fine until last week. Now when we connect its just a blank screen with no icons.
I get a whole bunch of errors when starting the service too:
Tue Feb 23 14:29:45 2010
... (1 Reply)
Discussion started by: wbdevilliers
1 Replies
6. AIX
currently, my samba login works just fine. i want my clients to use aix5.3 account to login to samba so they don't have to change samba pwd and aix pwd. i googled, and vi /usr/lib/smb.conf per some of knowledge base, but i could not get to work.
aix5.3 and samba 3.0.24.0
thanks in advace..... (2 Replies)
Discussion started by: tjmannonline
2 Replies
7. UNIX for Dummies Questions & Answers
Dear users,
One more question, In unix when i use pwd the following I get:
pwd
/Users/username/src/directory name
Is there a way to get the out put like this in which the if there is a space in the directory eg directory name it should show as directory\ name:... (2 Replies)
Discussion started by: kevincobain2000
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
can anyone expalin the real importance of PWD as a variable.
However pwd command and $PWD is going to give the same result, then why do we have 2 different things.
Please give some example which illustrates the difference between both.
Thanks (9 Replies)
Discussion started by: pandeesh
9 Replies
9. UNIX for Dummies Questions & Answers
when user types "pwd.sh joe" at command line, it generates pwd as abc123 and when user types "pwd.sh jane" at command line, it generates pwd as abc123.
pwd will change every 90 days.
my pwd file will be always abc123 until i change joe/jane/bob pwd manually. (3 Replies)
Discussion started by: lawsongeek
3 Replies
10. UNIX for Beginners Questions & Answers
Hi all,when I cd to an environment variable "cd $MYDIR, if I type pwd, I don't the path to the environment variable dir I cd to. Appreciate the help, regards..Abbya (5 Replies)
Discussion started by: abbya
5 Replies
IOK(1) General Commands Manual IOK(1)
NAME
iok- Indic Onscreen Keyboard
SYNOPSIS
iok [-a] [-h] [-d 1] [-n LANGCODE]
DESCRIPTION
Indic Onscreen Keyboard currently shows Inscript and Inscript2 keymaps for 22 official Indian languages. The languages are Assamese,
Bengali, Bodo, Dogri, Gujarati, Hindi, Kannada, Kokani, Maithili, Malayalam, Manipuri, Marathi, Nepali, Oriya, Punjabi, Sanskrit, Santali,
Sindhi, Tamil, Telugu.
The iok application runs in default and advanced mode. In default mode, iok starts by loading Inscript2 keymap of the current locale.
If keymap is not installed or available then iok shows keymap list in the default mode. User can then select any keymap from keymap list if
he want to write using it.
In the advanced mode, iok allows one to open non-supported keymaps. If keymap can be parsed by iok then it will be showed in iok UI
otherwise it will show error message that iok can't load this keymap. Advanced mode also allows one to create custom keymap by either swap-
ping or re-assigning character mappings in the existing loaded keymap in iok.
Another feature iok supports is Drag and Drop. This will allow user to swap character mappings using mouse.
The keymap list shows Inscript and Inscript2 keymaps from location /usr/share/m17n and ~/.m17n.d path.
To start iok in normal mode from console, use following command iok
To start iok in advanced mode from console, use following command iok -a
To start iok in any supported Inscript2 keymap (say in Marathi) use following command iok -n mr
As Inscript2 keymap naming also uses language script code for some languages, command to open those keymaps is like this iok -n pa-guru
where pa is a isocode name for the Punjabi language and guru is a language script code name in which keymap is written.
To use Drag and Drop feature of iok, start iok from console as iok -d 1 The Draft version of Inscript2 keymaps are available at
https://fedorahosted.org/inscript2/
This project is available at http://fedorahosted.org/iok/ or http://iok.sourceforge.net
OPTIONS
-a It shows the menus and combo box in iok UI
-h It show the help
-d 1 This will enable Drag and Drop feature only for the single iok invocation. Otherwise iok has disabled Drag and Drop by default.
-n LANGCODE
In the place of LANGCODE,you need to specify a particular language code. Shows iok UI for that particular language. This will also
requires language script code. e.g. for Bodo, Dogri, Kokani, Nepali, Sindhi use its langcode and "-deva" as a language script
code.
To start iok using Kokani keymap, run "iok -n kok-deva"
AUTHOR
Suji A <suji87.msc@gmail.com> , Parag <pnemade@fedoraproject.org>
March 12, 2012 IOK(1)