Solved

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

Posted on 2011-02-25
3
307 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now