Linux - How to edit a file?

> Procedural Languages > Bash Shell and (Unix|Linux) Utilities (XCU) > Bash - File System

1 - About

To edit a file in the shell mode, you have to use an editor such as:

For a Windows gui, Winscp has its own editor.

Advertising

3 - Snippet

To edit the file:

  emacs file.txt
  vi file.txt
  pico file.txt

To save the file:

  • with pico type CTRL+O to save and CTRL+X to exit.
  • with vi, see this article: Text Editor - Vi (VIM)
  • with emacs: Ctl-x Ctl-c
lang/bash/fs/file_edit.txt · Last modified: 2018/11/10 14:19 by gerardnico