How to edit a file when you are viewing it using more / less pager https://www.cyberciti.biz/faq/edit-file-when-youre-viewing-withmore-less/ #linux #unix #macos #opensource #freebsd
Conversation
Notices
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Tuesday, 19-Mar-2024 05:33:15 JST nixCraft 🐧 -
Josh Burke (steampumkin@mastodon.social)'s status on Tuesday, 19-Mar-2024 05:35:33 JST Josh Burke @nixCraft At first I thought this was a joke... I've used less but what on earth is more???
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Tuesday, 19-Mar-2024 06:07:08 JST nixCraft 🐧 @joachim I only use vim but nano/emacs/joe etc should work. It should work with GUI editor too:
```
export EDITOR=gedit
export VISUAL=gedit
less filename
``` -
joachim (joachim@drupal.community)'s status on Tuesday, 19-Mar-2024 06:07:21 JST joachim @nixCraft Does that also work with non-awful text editors?
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Tuesday, 19-Mar-2024 06:07:48 JST nixCraft 🐧 @SteamPumkin See https://bash.cyberciti.biz/guide/More_command
-
Ness (escgoat@mastodon.social)'s status on Tuesday, 19-Mar-2024 12:09:57 JST Ness @nixCraft I hope you don't mind me adding on...
If you've never used vim, type 'vimtutor' into the command line and you will be brought to an interactive instruction manual for vim.
That's how I learned it. :blobcat:
-