Sponsored Content
Full Discussion: Changing Unix Prompt
Top Forums UNIX for Dummies Questions & Answers Changing Unix Prompt Post 60041 by google on Friday 7th of January 2005 02:28:17 PM
Old 01-07-2005
You can also use the format: Am using Korn Shell on HP-UX 11.x

export PS1='$PWD--> '
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Changing the UNIX command prompt

I am having a hard time figuring out how to change the command prompt in my UNIX shell. I am using the bash shell, and I would like to set the prompt to show me the full path of the current working directory along with my username, I suppose... The main thing I want is the full path of the... (2 Replies)
Discussion started by: WERUreo
2 Replies

2. UNIX for Dummies Questions & Answers

Changing the prompt

Phew simple question, I want to display the my directory path in prompt. Did the following in .profile PS1=`pwd` export PS! Worked, but it always points to HOME directory. When i do a cd, it doesn't change. What am i missing. Thanks (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies

3. UNIX for Dummies Questions & Answers

Changing Prompt in sh

I know no one has ever asked this before {not :D } but I am trying to set the prompt in the .profile under sh. I have tried everything I have seen on the web in regards to this, with no success. The OS is SCO Unixware 7.1.1, {not by my choice}. All the examples I see seem to be for ksh, which is... (1 Reply)
Discussion started by: jcc5169
1 Replies

4. Solaris

Changing prompt

I currently have this as my prompt when I log in (shell is sh): PS1="`hostname ` # " My question is how do I add the current directory to that prompt? Is there a way? Thanks. (5 Replies)
Discussion started by: kjbaumann
5 Replies

5. Shell Programming and Scripting

problem in changing prompt

hi all, please tell me why this 2 liner script is not working!! #!/bin/bash oldps1="$PS1" PS1="myprompt>" but when type this in terminal it works!! (7 Replies)
Discussion started by: tprayush
7 Replies

6. UNIX for Advanced & Expert Users

Changing the password prompt

Is there any way I can change the prompt which asks for the password on a UNIX system? e.g. When I login using Telnet instead of "Password" I should get "Correct Password". Thanks, Vineet (3 Replies)
Discussion started by: vineetd
3 Replies

7. Shell Programming and Scripting

Changing the shell prompt

Hi, I want to change the shell prompt, using the cd command. I have a shell prompt like this - p78-mfx(dgaw1078/9781)$ Now i do this - p78-mfx(dgaw1078/9781)$ cd log4j here the shell prompt should change like this - p78-mfx(dgaw1078/9781)log4j$ (6 Replies)
Discussion started by: arunkumarmc
6 Replies

8. UNIX for Dummies Questions & Answers

Changing ubuntu prompt

Currently, when I cd to a directory I get the directory path in the command prompt, making it very long. I would like to change it so the path is not displayed. If I am in directory ~/tatsh/hstmy/test, I just want my prompt to be the last directory name as shown just below ---------- Post... (1 Reply)
Discussion started by: kristinu
1 Replies

9. Shell Programming and Scripting

Changing default prompt

Hi, i was wondering if it is possible to change the default prompt for the shells that are availble on your system? For example, i want to change the prompt for the C shell from % to something like ( or ). Thanks, Nav. (7 Replies)
Discussion started by: Navs_
7 Replies

10. Shell Programming and Scripting

Changing the prompt in CSH

Need assistance in changing prompt . Trying to change prompt in csh,tcsh shell . Below are the commands i tried in .cshrc and sourcing this files. set prompt = "$user@`uname -n` : ${cwd}> " #above commands works for username and hostname but cwd doesnt change directories set... (16 Replies)
Discussion started by: ajayram_arya
16 Replies
dosif(4)						     Kernel Interfaces Manual							  dosif(4)

NAME
DOSIF - DOS interchange format DESCRIPTION
The DOS Interchange Format (DOSIF) is the name given to the media format used by the DOS operating system. This format is based upon that used in IBM PC and PC AT and HP Vectra systems. Use the and commands to convert files between HP-UX and DOS file formats; see dos2ux(1). Use these utilities to retrieve information from a DOSIF volume. The dos*(1) utilities are the only HP-UX commands that can interact directly with the contents of a DOSIF volume. The only other way to interact with the contents of a DOSIF volume is to use an HP-UX DOS emulation or coprocessor facility such as SoftPC or the DOS Coproces- sor. The command cannot be used on a DOSIF volume because the operating system does not recognize it (see mount(1M)). When constructing file names for the dos*(1) commands, start with the HP-UX path name of the DOSIF volume, then add a colon followed by the file name: or This file naming convention is suitable for use only in arguments of the dos*(1) utilities. It does not constitute a legal path name for any other use in HP-UX applications. Metacharacters and can be used when specifying both HP-UX and DOS file names. These must be quoted when specifying a DOS file name, because file name expansion is performed by the DOS utilities, not by the shell. The dos*(1) utilities expand file names as described in regexp(5) in the section. By convention, if the HP-UX device name and a trailing colon are specified, but no file or directory name is provided (for example, the root of the DOS file system is assumed. EXAMPLES
Example 1 Specify DOSIF file accessed through HP-UX special file Example 2 Specify DOSIF file accessed through the DOS volume stored as HP-UX file SEE ALSO
dos2ux(1). dosif(4)
All times are GMT -4. The time now is 04:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy