avatarTeri Radichel

Summarize

Cannot edit long commands from history on AWS EC2 command line

Shell history overlapping itself on AWS EC2 makes it impossible to edit

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚙️ Check out my series on Automating Cybersecurity Metrics | Code.

🔒 Related Stories: Bugs | AWS Security | Secure Code

💻 Free Content on Jobs in Cybersecurity | ✉️ Sign up for the Email List

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Let’s say you have a really long command line this.

What is weird is that this time the history up arrow worked and I correctly see the line wrap. Hmm. Let’s see if I can produce the annoying problem that is making it difficult to work on Amazon EC2 Linux.

Ah here we go.

The command has an error.

The up arrow doesn’t put the line flush left. However at least it is blank where that extra space exists.

I wrote about how weird text existed at the beginning of each line before here:

I also wrote about how these stories aren’t showing up in Google Search Engine rankings for some reason here:

Anyway, the odd thing is, I haven’t update my system lately and now I’m seeing space at the front of the overlapping line instead of partial text from prior lines.

Ah, here we go. Run a working command, get out, and hit the up arrow and get this:

Also odd is that when you the screen bigger you get this:

And if you keep scrolling up you get more and more space at the botom and there seems to be some brackets on the right and left:

Now the weird text is back. — profile XacctWebAdmin is not part of my current command.

As I scroll up through my history:

You can see

That it is

Still there

Run that last command. Hit the up arrow. Get this:

I can’t edit that line. I tried. There’s an error. I need to edit stackname and make it stack-name.

If I hit the back button you can see that my cursor just ends up on the prior blank line.

Impossible to edit.

Hope it gets fixed soon.

Related:

Follow for updates.

Teri Radichel | © 2nd Sight Lab 2023

About Teri Radichel:
~~~~~~~~~~~~~~~~~~~~
⭐️ Author: Cybersecurity Books
⭐️ Presentations: Presentations by Teri Radichel
⭐️ Recognition: SANS Award, AWS Security Hero, IANS Faculty
⭐️ Certifications: SANS ~ GSE 240
⭐️ Education: BA Business, Master of Software Engineering, Master of Infosec
⭐️ Company: Penetration Tests, Assessments, Phone Consulting ~ 2nd Sight Lab
Need Help With Cybersecurity, Cloud, or Application Security?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔒 Request a penetration test or security assessment
🔒 Schedule a consulting call
🔒 Cybersecurity Speaker for Presentation
Follow for more stories like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
❤️ Sign Up my Medium Email List
❤️ Twitter: @teriradichel
❤️ LinkedIn: https://www.linkedin.com/in/teriradichel
❤️ Mastodon: @teriradichel@infosec.exchange
❤️ Facebook: 2nd Sight Lab
❤️ YouTube: @2ndsightlab
Ec2
Bug
Shell
Command Line
History
Recommended from ReadMedium