Solved

How to change the command prompt & elvis problem !

Posted on 1997-11-05
2
587 Views
Last Modified: 2013-12-15
Hi there,

I wish to know how to change the command prompt of the Slackware 3.2 linux, my current command prompt is tm:/$ for root and tm:/# for ordinary user. I want to change to sublogic:/$.

In elVIs, how do I write and quit a new file using :wq filename command, it give an error like "there is too many  characters after wq".

Any help will be greatly appreciated, and thanz in advance for any help


ckl

 
0
Comment
Question by:cklim060797
2 Comments
 
LVL 4

Accepted Solution

by:
unicorntech earned 0 total points
ID: 1630401
To change the prompt you need to type at the command promt:

PS1='sublogic:/$'
export PS1

However the TM that is currently at the prompt is the machines hostname. If you cahnge the hostname this will change the TM at the prompt to the new hostname.

In elvis you cannot specify filename with :wq.

Open it under the appropriate filename or alternatively write and quit and then mv or cp it to the correct file-name - hope this helps - BTW I recommend using vi.....

Regards,

Jason
0
 

Author Comment

by:cklim060797
ID: 1630402
Hi Jason,

How do I use vi in Linux slackware ver3.2 ??

thanz


ckl
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

706 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

18 Experts available now in Live!

Get 1:1 Help Now