Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8762575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:33:47+00:00 2026-06-13T15:33:47+00:00

I sometimes want to make small edits to small file from within the shell

  • 0

I sometimes want to make small edits to small file from within the shell I’m working in, while looking at my command history.

As an example, if I want to write a short shell script after experimenting on the command line, I can do:

cat > example.sh

and work from what I can see.

But cat’s not the best editor. If I use vi or emacs though (as far as I can tell) the whole environment changes, and I can only see what I’ve been doing is if I run the shell history command from inside the editor, which isn’t really what I want either.

I realise this is really nit-picky, but does anyone have any suggestions for a sensible editor (or way of using a sensible editor) that I can quickly invoke from the command-line and doesn’t spawn its own environment?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T15:33:48+00:00Added an answer on June 13, 2026 at 3:33 pm

    If you need to edit the command line, have a look at the (built-in) fc editor (Bourne Shells).

    If you need to edit files though, nothing beats a real editor. You can use The Standard (ed, man!) or what everybody else should be using, vi 🙂

    Unlike vi, ed does not clear the screen; in fact, it is a line oriented editor. Note that some versions of vi in some terminals (vim in an xterm) can be configured to save the screen and restore it upon exit as it was before editing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes our OpenERP users want to make a small change to a field in
I'm writing an application wherein users will sometimes make orders through it. I want
Sometimes I want to build Python or GCC from scratch just for fun, but
I have 2 classes both inherit from the same interface. i want sometimes to
In my template, sometimes I want to make the translated string passed through upper
I am working on a Prism template for my company. I want to make
i have been programing in vc++ for sometime and i want to make some
If I'm not online, I sometimes want to package some changes to a commit,
When using implicit waits, as advised here , I still sometimes want to assert
Sometimes I want to have temporary comments fully left justified on a line (//)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.