Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to change the command prompt & elvis problem !

Posted on 1997-11-05
2
Medium Priority
?
595 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

609 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