- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Vi editor in single user mode .
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2002 01:20 PM
09-27-2002 01:20 PM
Vi editor in single user mode .
When i Log in as a single user and set the TERM =Hp after mounting i,m not able to edit any files using Vi editor .. the error it throws is ..
"I don't know what kind of terminal youare on - all I have is 'Unknown' [using open mode]
Can any one help on this.
Thanks in Advance
Asif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2002 01:23 PM
09-27-2002 01:23 PM
Re: Vi editor in single user mode .
It is case sensitive. Use "hp".
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2002 01:28 PM
09-27-2002 01:28 PM
Re: Vi editor in single user mode .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2002 01:37 PM
09-27-2002 01:37 PM
Re: Vi editor in single user mode .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2002 02:11 PM
09-29-2002 02:11 PM
Re: Vi editor in single user mode .
It is impossible to to run vi without properly identifying the terminal you are using. Start by mounting /var and /usr:
mount /var
mount /usr
Then use ttytype to identify the terminal:
eval $(ttytype -s)
Now see what was returned:
echo $TERM
It should match the device that you have connected to the console. Don't force the TERM value to some random terminal ID, vi will not be happy.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 01:06 AM
09-30-2002 01:06 AM
Re: Vi editor in single user mode .
Although a bit tricky, this is a perfectly valid way of using vi. It is the fallback mode when it doesn't recognise the terminal type. It just takes a bit of getting used to.
The normal movement keys, hjkl and so on, work as you would expect.
You might prefer to use ex (command line) mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 01:35 AM
09-30-2002 01:35 AM
Re: Vi editor in single user mode .
/usr/lib/terminfo
(see tic and untic man pages)
mount /usr and set TERM variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 01:45 AM
09-30-2002 01:45 AM
Re: Vi editor in single user mode .
possibly in single user mode
the variable TERM is not exported.
Try:
TERM=hp ; export TERM
vi .....
Regards