All Questions
Tagged with text-editor command-line
56 questions
0
votes
0
answers
31
views
How can I change directories from the Gnome text editor?
I am a new Linux user. I have installed Ubuntu 24.04, which installed with the Gnome front end.
I can open the default text editor but cannot change directories. I would like to see the entire file ...
0
votes
1
answer
79
views
How to configure slrn so that nano is the text editor?
How is slrn configured so that nano is used as an editor?
nicholas@mordor:~$
nicholas@mordor:~$ grep vim .slrnrc
%set editor_command "vim -c %d '%s'"
nicholas@mordor:~$
nicholas@mordor:~$ ...
2
votes
2
answers
660
views
Why micro is not recognized as text editor in Ubuntu 22.04?
I installed micro with sudo apt install micro on 22.04
I want to use visudo with micro.
export EDITOR=micro then next line visudo opens in nano.
So, then I tried sudo update-alternatives --config ...
-3
votes
1
answer
49
views
cut even lines and merge to upper line
I have a file like with CRLF line terminators:
Green Day: Rock Band Xbox 360
3074
Green Hell Steam
27015-27030, 27036-27037
Green Hell Switch
6667, 12400, 28910, 29900, 29901, 29920
Adios Steam
Adios ...
2
votes
2
answers
77
views
Can I set specific lines to be included by default in new files?
Can I save specific lines in a text file which can be shown always by default whenever I make another text file again in the future?
As an example, when I make a new text file in Ubuntu it's going to ...
5
votes
7
answers
2k
views
Can we have a terminal that we can write like a text editor?
Something that (for me) doesn't make sense is that terminals don't act like other text areas, like when we write on a text editor or on your browser. Features like copy and paste, select text, etc, ...
0
votes
1
answer
59
views
How to create a file with the following structure?
Consider the following rows:
E i -1 -1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00 0 0 1 0 0 0 0
U GEV MM
V -1 0 0 0 0 0 0 1 0
P 1 535 0.0000000000000000e+00 0....
6
votes
2
answers
327
views
Which CLI text editor does not waste screen space?
Vim has a non-removable status bar at the bottom. Nano has the same problem with its title bar. Surely there has to be an alternative for entering text in full-screen without any frills? I often jot ...
7
votes
5
answers
3k
views
Which terminal text editor uses GUI-like keyboard shortcuts?
I seek an editor where Ctrl+C copies, Ctrl+X cuts, Ctrl+V pastes, Ctrl+Z undos, Ctrl+Y redos, F3 searches and F2 renames. When I click the left mouse button, the cursor should go there. All modes ...
-1
votes
3
answers
1k
views
My terminal does not redirecting to Text Editor App
I'm using ubuntu 20.04 .
Today I reinstalled it , and then i was trying to execute this command via terminal
sudo nano /etc/fstab
While I execute it, it opens a text file and it was supposed to open ...
11
votes
3
answers
33k
views
How to edit files in GUI text editors as root?
This time and another I need to edit some files that are supposed to be edited by root only.
I would very much prefer to do it in a GUI text editor rather than using command line tools like nano or vi....
0
votes
0
answers
4k
views
Cannot save or exit in sudoeditor
I am new using sudoeditor and I just want to edit sources.list file and then exit. However, after editing the file, I cannot save or exit. First I press ESC and then try to type the activated cursor ...
0
votes
0
answers
221
views
Shortcut key to show and hide embedded terminal on gedit
I have been using gedit for writing codes and compiling and running using the embedded terminal provided along with it. I often need to show and hide the terminal. The only option I have is to close ...
2
votes
1
answer
616
views
How to make the Delete key work in micro (text editor) when this is running under st terminal (from bspwm)?
How to make the Delete key work in the Micro text editor, when this is running under st terminal (from bspwm)?
When I press the Delete key, this sequence appears: "[P".
I have tried changing the ...
2
votes
3
answers
955
views
Editing Text file header (Fasta format)
This is a fasta format heading
>KRH76248 pep chromosome:Glycine_max_v2.1:1:47401227:47414434:-1 gene:GLYMA_01G141900 transcript:KRH76248 gene_biotype:protein_coding transcript_biotype:...
1
vote
2
answers
1k
views
Mu-editor installation failed
I tried to install Mu-editor from the terminal with pip install mu-editor. It downloaded everything, and at the end of installation I got this error:
ERROR: Command errored out with exit status 1:
...
7
votes
1
answer
1k
views
Add an editor to a list of terminal system editors
When you use vipw or crontab or just type select-editor you are presented with the list of the editors installed on the system. How do I add my custom editor to that list?
12
votes
5
answers
4k
views
How to open terminal output with a texteditor without the creation of a new file?
Let's say that I want the output of ls viewed in nano or tilde.
I would do the following:
ls >> tmp
nano tmp
rm tmp
I don't like this because it creates a dumpfile that I sometimes forget to ...
0
votes
0
answers
274
views
Problems with text editors on ubuntu
So, I am new to Ubuntu, which is required for my CS course that primarily focus on ruby and Ocaml. The problem that I'm having is that whenever I try to open up the project file with command "ruby ...
4
votes
1
answer
1k
views
How to print via text-editor (like mousepad) from the command-line?
While …
libreoffice -p mytextfile.txt
… works fine and without opening a window (like head-less mode, which is what I want to do), Libreoffice is a very big application to solve such a small task.
...
1
vote
1
answer
389
views
How open "man node" or other informational command line's output in a text editor? [duplicate]
I'm working with command line and sometime some informational - as manuals readMe and all - output are very large and hard to read in a one shot from the command's line.
I wonder how open it directly ...
1
vote
1
answer
123
views
CLI command being overridden? visual-studio-code is installed alongside sublime text but the CLI command `code` only opens sublime
I am trying to give visual-studio-code a go to see if it would be a good code editor for me. So I have it installed. However, I also already had/have Sublime Text 3 installed. I cannot for the life ...
1
vote
0
answers
194
views
How to open a terminal file in TextEdit [duplicate]
I use nano <file_name> to open/edit files on my remote Digital Ocean server (running Ubuntu 16.04). However it's very hard to edit so is there a way to open these files in TextEdit?
I tried to ...
12
votes
2
answers
12k
views
How to edit a .odt file from the terminal?
I work a lot with LibreOffice Writer.
I wanted to know if there was a way to edit the text through the terminal?
2
votes
1
answer
48k
views
Can the cat command edit a text file as well as read it? [duplicate]
I am trying to learn all I can about the cat command. I am going to be using it for its light weight performance and its ability to work in nothing but a command line.
I know it can create a text ...
20
votes
4
answers
5k
views
Tool for viewing LibreOffice Writer files in terminal window
I am using a couple of documentation files in LibreOffice (.odt) format. Normally, I access them with LibreOffice Writer of course. But there are times when I can only connect to the site with a text ...
35
votes
10
answers
157k
views
What editor can I use as a simple vi/vim alternative?
I'm a Windows user coming to Ubuntu's Bash thanks to WSL. Now I need to edit some files and I really hate Vi. Do I just have to deal with it, or is there a simpler alternative?
The features I am ...
4
votes
4
answers
6k
views
Use sed to use "find and replace" for each second occurrence
I have a folder with +1000 .dat files. And each file contains many lines of the following type:
-0.0999999999999659-0.0000000006287859
-0.08999999999997500.8000000006183942
-0.0799999999999841-0....
12
votes
4
answers
17k
views
How do I open a large file in a terminal (using vim causes terminal to hang)? [duplicate]
I'm using Ubuntu 14.04. I have a large log file:
-rw-r--r-- 1 rails root 1792390124 Jan 10 14:54 /var/log/unicorn/unicorn.log
Nonetheless, I need to open it and find some things in it. I tried vim,...
0
votes
1
answer
227
views
I'm looking for a terminal editor with Ctrl-Backspace/C functionality
I need a terminal based text editor where I can delete a word before the cursor with Ctrl-Backspace and a word after the cursor with Ctrl-Delete. Other editor functionality is welcomed as well ;)
0
votes
1
answer
2k
views
Wanted: Text based IDE for Python
I look for a terminal based IDE for Python on Ubuntu where there are several auxiliary windows for variable inspection and maybe for command history. Something like the Spyder GUI.
0
votes
1
answer
347
views
Tail - like tool for log files [duplicate]
I want a tool that offers tail-like functionality for large files. (which are in a remote server and mounted on my system, for what that matters).
I am aware of glogg but I am having issues with auto ...
2
votes
2
answers
2k
views
Console text editor with "Windows-like" shortcuts (CTRL+A, -C, -X, -V, Shift+End, Shift+Up ...)
I have used Windows for ~30 years and I remember its shortcuts well. I have used Ubuntu for about 5 years and never remember its shortcuts. I do not use text editors all the time, so most likely I ...
10
votes
1
answer
68k
views
How to edit my /etc/sysctl.conf file? [duplicate]
In one of the labs for learning Linux system administrator I have to do :
Now change the value by modifying /etc/sysctl.conf and force the system to activate this setting file without a reboot.
Check ...
1
vote
1
answer
341
views
Write edited contents of file to stdout
I need a visual text editor that can be used as follows - the example will not work but illustrates the point.
gpg2 -d x.gpg | gedit -w - | gpg2 -e -o x.gpg
This command will allow me to decrypt a ...
7
votes
1
answer
35k
views
"git config --list" command not showing complete list, is the configuration incomplete?
I have installed git with command:
sudo apt-get install git
I even set the username and email in git config using this:
$ git config --global user.name "John Doe"
$ git config --global user.email ...
15
votes
3
answers
72k
views
How do I find out what my default terminal text editor is? [duplicate]
While reading the git introductory material, I read a piece that brought this question to mind.
How do I use the Terminal to find out what my Default Text Editor is?
Are there a General Commands ...
-1
votes
2
answers
1k
views
Changing file's properties so you could only add text to it, is it possible?
Is it possible to make deleting text from a text file impossible while still being able to add text to it?
For example, let's say i have a text file with these three letters in it :
A
B
C
How can ...
2
votes
3
answers
1k
views
graphical text editor that can filter text through shell commands?
I used to use NEdit as a graphical text editor, but lately it no longer works right due to lack of maintenance. So I am looking for a replacement. Is there any graphical text editor that can send a ...
3
votes
1
answer
1k
views
I want the date and time to be added in a text file whenever I open it
I was using windows 7,8.1, and 10 previously and there was an option in the Notepad that if I type .LOG at the beginning of the file (which is done only once), every time I open the notepad the date ...
0
votes
0
answers
70
views
Use terminal to run programs scripts a short and practice way [duplicate]
in window I know make this withe the cmd but in ubuntu it's not good
I have a question about the Terminal.
I want to ask how to call a program in the terminal
$ /home/yvanmoses/Dropbox/...
2
votes
1
answer
1k
views
Slap Editor Installation problem, (sudo: npm: command not found) [duplicate]
I'm installing Slap Editor on Ubuntu 14.04 and when I type sudo npm install -g slap its giving me the error sudo: npm: command not found .
the node version on my system is 0.10.33 and the npm version ...
5
votes
1
answer
3k
views
A terminal based markdown editor that supports shortcuts
I am looking for a terminal based markdown editor which support shortcut keys like ctrl+b which will output **enter bold text here** or something like that to the markdown file. Same way for italics, ...
2
votes
3
answers
1k
views
How to install the Jason plugin for jEdit?
I am a newbie in Ubuntu (14.04) so I am very appreciative if you can guide me how to install Jason as a plugin of jEdit.
Jason installation homepage.
jEdit plugin installation instructions.
The ...
0
votes
1
answer
462
views
Force mousepad to block terminal
I'm using mousepad as my default editor. However, recently mousepad does not block the terminal when it has been called up from there. How can I restore this behavior?
1
vote
2
answers
2k
views
Editing with Nano
Is it possible to edit an existing text file using only one line of command and Nano. For instance if I have a text file called "new.txt" and I want to write "HELLO WORLD" in it. Can I do like this:
...
8
votes
2
answers
9k
views
Is there any command line interactive tool like meld?
I usually work on someone else's code base on a remote system and often need to merge code from two different files. For that I have to pull files to my system and meld it and push it back to the ...
111
votes
11
answers
236k
views
Please recommend a hex editor for shell
Can you recommend a hex editor that can be run from shell? I need to be able to edit not only view the content.
0
votes
2
answers
661
views
append any line that starts with <br> with the previous line in whole document
I wanna remove spaces and join line that starts with specific words at the last of previous line.
Example
From
`<b>any thing that matters<b> what ever, i don't know.
<font=any ...
212
votes
16
answers
2.4m
views
How do I open a text file in my terminal?
There is a file named RESULTS.txt and I want to open this file in my terminal. (I mean I want to see the file contents be displayed in the terminal and not in some text editor)
How do I do that ?