To create a new text file, you can either use the command line or your desktop file manager. Replace /path/to/filename with the actual file path of the configuration file that you want to edit. Then type nano followed by the filename that you want to edit. Navigate to the directory where the file is placed. The ls command is also available to check its contents. To edit any config file, simply open the Terminal window by pressing the Ctrl+Alt+T key combinations. When a new text file is created, it will appear in the main terminal. None of these add-ons is going to revolutionise your productivity but if they shave a few seconds off the drudgery of daily computing here and there please make sure you spend the time wisely, i.e. To use vi, run the vi command and then type data in the text field. nautilus-ideviceinfo to see advanced info in the properties dialog.It may be helpful to add '.txt' to the end of your filename so you know it's a text file. For example, if you want to create a file called 'testfile,' type nano testfile and press Enter. This creates and opens a new text file with that name. nautilus-kdeconnect to level up KDE Connect integration Replace filename with the name you want to give your new text file.nautilus-image-converter to rotate and resize images.nautilus-hide to quickly hide files and folders.
#EDIT TEXT FILE IN TERMINAL LINUX ARCHIVE#
desktop, or other text-related file and quickly open in Gedit to do what I need to, then be on my way.īut hey: I’m also the guy who will repeatedly smush the ↑ key 20 times to find the sudo apt dist-upgrade command I ran last Saturday rather than retype it - little timesavers like this are much needed.Īs (most of) you may (do) know there are other nifty Nautilus extensions available in Ubuntu’s archive (and likely the archives of most modern Linux distros) including: But for a graphically-led chap like myself? Well, I appreciate being able to right-click on a buried config. It’s arguably more efficient to use a command-line text editor to edit text files as root using. Henceforth, you can right-click on pretty much any file in the file manager and select “Edit as Administrator” - a bit Windows-y worded, that - to open the file with root permissions in whatever the default/associated app for that type is Gedit (thanks Jo).Īnd open it as root safely, without inadvertently screwing up the location of any configuration files touched during your session.
#EDIT TEXT FILE IN TERMINAL LINUX INSTALL#
Simply go to a terminal and run: sudo apt install nautilus-admin Here’s a little time-saver if you (like me) often need to edit text files as root in a graphical app on Ubuntu.