Solved

How to change the command prompt & elvis problem !

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
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 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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 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