Sponsored Content
Top Forums Shell Programming and Scripting CWD in prompt only showing the directory when set Post 302403072 by kinny on Thursday 11th of March 2010 10:13:41 AM
Old 03-11-2010
CWD in prompt only showing the directory when set

Hi Gurus,
I am working in tcsh and i set the prompt with this.
set prompt = "$cwd>"

But I see teh prompt only gets reflected with the directory where I set the prompt. After i cd to another directory it still shows the old directory. Please advise
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

kill, set prompt

ok, there is a way to nicely kill a suspended job and to terminate another without using the mass -KILL command. also, how can I set my prompt temporarly without using the .bash_profile that uses the PS1. Thanks:) (1 Reply)
Discussion started by: bitwize
1 Replies

2. UNIX for Dummies Questions & Answers

set prompt in sh

hi, this < setprompt 'set prompt="# "' > is set in C shell. what is the equivalent in sh? thanks (14 Replies)
Discussion started by: yls177
14 Replies

3. UNIX for Dummies Questions & Answers

CWD as Prompt

I need a one line command called cd (must also still function as cd) and will allow the prompt to change to the cwd. All I can figure out is to change the .cshrc but there must be an easier way in a one line command no? (1 Reply)
Discussion started by: petter_uk
1 Replies

4. UNIX for Dummies Questions & Answers

Set prompt, problems and tricks

I'm using a csh shell (or, that'd be my guess from the .cshrc file I see) and I'm looking to change my prompt. There are about 10 other threads, I know, but this question is a little more specific. I want to know, is there a way to list the current directory from a certain level or directory... (6 Replies)
Discussion started by: HybridLogic
6 Replies

5. Shell Programming and Scripting

set timeout for ssh prompt

Hi all, I want to set a timeout say 10 sec to shh prompt i.e. if no password is enetered for 10 sec prompt should again come to shell. How can this be achieved ?? I am using Linux RHEL 5 and Solaris 10. Pls help. Thanks in adv. VIKAS (3 Replies)
Discussion started by: vikas027
3 Replies

6. Shell Programming and Scripting

tcsh/csh: set prompt in production to color red

Hi folks This is our prompt at the moment oracle@pinkipinki:/opt/oracle> grep 'set prompt' .cshrc set prompt = "$user@`uname -n`:$cwd> " We wish to have in production the same prompt, but red. Howto do that? I tried a lot a internet manuals, but it doesn't work. (1 Reply)
Discussion started by: slashdotweenie
1 Replies

7. UNIX for Dummies Questions & Answers

set prompt = pwd

Assume that you want to set your prompt to display the current working directory followed by a percent symbol and then a space. The command pwd can be used to display this information, so explain why the following command does not have the expected result: set prompt=" `pwd`'%' " Its a... (7 Replies)
Discussion started by: Blockshelf
7 Replies

8. HP-UX

[Solved] /var directory in HP-UX is showing 95%?

Hi Everyone, My var directory is showing near to 100% ? What are the files should i delete to make it less?? Kindly suggest # bdf -i Filesystem kbytes used avail %used iused ifree %iuse Mounted on /dev/vg00/lvol3 1048576 107616 933616 10% 3342 29394 10% /... (10 Replies)
Discussion started by: yadvinder
10 Replies

9. HP-UX

Unable to Set Prompt to current working DIR

HPUX does not recognise \h,\w,\u to display the hostname,working directory and username respectively. So how do i set the PS1 variable to display my current working Directory as my prompt? I also tried PS1=$PWD, But it keeps showing the same directory path as prompt which PWD was holding at... (3 Replies)
Discussion started by: Amit Kulkarni
3 Replies

10. Shell Programming and Scripting

Grep showing all files name of the directory

Hi All, Can any one help me here.I'm getting whole files name of the directory along with the grep result. below is the code var=`grep -i '127.3.3.1' _record` echo $var (9 Replies)
Discussion started by: netdbaind
9 Replies
rmfdmn(8)						      System Manager's Manual							 rmfdmn(8)

NAME
rmfdmn - removes a file domain SYNOPSIS
/sbin/rmfdmn [-f] domain OPTIONS
Turns off the message prompt. OPERANDS
Specifies the name of an existing file domain. DESCRIPTION
Use the rmfdmn utility to remove an existing, but unused, file domain and all its filesets from the system. When you remove a file domain: The file domain and its filesets are destroyed The directory entry for the file domain in the /etc/fdmns file is deleted AdvFS volumes which were assigned to the file domain are relabeled as unused Before attempting to remove a file domain, unmount all filesets and clone filesets from the domain using the umount command. If you attempt to remove a file domain that has mounted filesets or clone filesets, the system does not remove the file domain. Instead, it dis- plays an error message indicating that a fileset is mounted. For each file domain you attempt to remove, a prompt similar to the following is displayed: rmfdmn accounts_dmn rmfdmn: remove domain accounts_dmn? [yes/no] If you answer n, the file domain remains. If you answer y, it is removed. The default is n, the file domain remains. The -f option is useful for scripts when you do not want to be queried for each file domain. If you choose the -f option, no message prompt is displayed. The rmfdmn command operates as if you responded yes to the prompt. RESTRICTIONS
You must be the root user to use this command. To remove a domain, all filesets and clone filesets must be unmounted. The rmfdmn command can leave a partially-removed domain in the /etc/fdmns directory, for example, should there be a system failure during the remove operation. If this happens, the remnants of the removed domain are put in the /etc/fdmns directory as a file with a name in this format: rmfdmn.domain_name.processid. If you interrupt the rmfdmn command or there is a system failure during its operation, check the /etc/fdmns directory for domain names in this format and use the rmfdmn command to delete them. However, if a partially-removed domain has been in the /etc/fdmns directory for some time, it can be risky to remove it with the rmfdmn command: the partitions might have been put back into use and deleting them would make them unusable. [The rmfdmn command puts an unused option in the fstype field of the disk label when it removes disks.] In this case, use the rm -r command to remove the partially-recovered domain. Unlike the rmfdmn command, the rm command does not alter the fstype field of the disk label. EXAMPLES
The following example removes the accounts_dmn file domain. In this example, the accounts_dmn#credit_fs fileset is mounted on the /mnt3 directory and must be unmounted. When the verification prompt for removing the accounts_dmn is displayed, yes is selected. # umount /mnt3 # rmfdmn accounts_dmn # rmfdmn: remove domain accounts_dmn? [yes/no] # rmfdmn: domain accounts_dmn removed FILES
Contains file domain names and devices. SEE ALSO
mkfdmn(8), advfs(4), showfdmn(8), mount(8) rmfdmn(8)
All times are GMT -4. The time now is 03:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy