Solved

Unix profile, how to set it so the directory and command line are on the same line

Posted on 2011-02-25
3
315 Views
Last Modified: 2012-05-11
My command line on one Unix machine looks like this, which I like:

[/slice6/imedw/transforms/claims/flexx] [cursor is on this line].

on another box the directory is above the cursor. This gives more typing room but 1/2 the number of lines to review on screen

[/home/immedpd]
$
0
Comment
Question by:Alaska Cowboy
  • 2
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 125 total points
ID: 34980809
Hi,

there is a linefeed in the PS1 variable.

Try to find out where it's being set and remove the linefeed character.
Check $HOME/.profile or $HOME/.bashrc or whatever initialization files you're using.

wmp
0
 
LVL 1

Author Comment

by:Alaska Cowboy
ID: 34980826
ok, checking now, thanks.
0
 
LVL 1

Author Comment

by:Alaska Cowboy
ID: 34980847
worked ! thank you.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Western Digital 2TB Red Not Being Detected By RAID Card 15 92
Write an app 10 71
High performance NAS comparable to 8Gbps SAN ? 3 70
HP DL160 G6 Hard Disk Question 3 79
The 6120xp switches seem to have a bug when you create a fiber port channel when you have a UCS fabric interconnects talking to them.  If you follow the Cisco guide for the UCS, the FC Port channel will never come up and it will say that there are n…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question