Terminal command editor

I'm seeking a terminal command editor, please. I'm a lifelong MS user since MSDos with its command line. In those days, MSDos remembered your command lines as you typed and it was easy to edit them or slightly modify them for a new command. It used arrows for scrolling if I remember right (it was 40 years ago!) so you could call up several recent commands. Where can I find something similar in Linux Zorin 18.1, please? (All my searches come up with something like an improved VIM I'm not seeking to replace an editor like VIM. My needs are much simpler.)

You can call the last entered terminal commands in gnome-terminal when you press the arrow key in terminal :up_arrow: . Press it repeatedly to find more previous commands. Then you can edit the command and change e.g. some values there and run the command again.

With the command history you can get a list of the last entered terminal commands.

1 Like

Two commands to add to the list to help:

This command will output your terminal history to a text file located in Documents
history > ~/Documents/history.txt

This command will let you search your terminal history for a term containing a term. Remove the <> and input a single word.
history | grep -i <term>

grep is the string searching command like findstr in dos and cmd prompt.

grep -i "term" searches for non-cade sensitive string.
grep -E "term" searches for a regex.

Bash (the terminal language so to speak) uses the similar string-like methods of batch/cmd, including looping functions are tokenized. It should be fairly easy to learn bash with a strong cmd/dos background.

I wish you luck.

1 Like

I have (and still use) a note I created called "shortcuts" most of the commands i use and often use. I also have (as most in forum has seen) a keyboard for a large quanty of linux commands if you havnt seen it yet heres post link

1 Like

That sounds like what I want. Thanks. I'll try it

2 Likes

That's perfect, thank you Forpli !

2 Likes