[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 598
  • Last Modified:

How to change the command prompt & elvis problem !

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
cklim060797
Asked:
cklim060797
1 Solution
 
unicorntechCommented:
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
 
cklim060797Author Commented:
Hi Jason,

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

thanz


ckl
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now