Solved

How to change the command prompt & elvis problem !

Posted on 1997-11-05
2
591 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RHEL6 + dockers - No route to host 7 89
Moving from Mcrypt to OpenSSL 18 72
I NEED A "BARE" LINUX ... 9 119
IMAP copying tool 14 71
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…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
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.:

738 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