Linux - How to edit a file?

Bash Liste Des Attaques Ovh

Linux - How to edit a file?

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.

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: Vim
  • with emacs: Ctl-x Ctl-c





Discover More
Bash Liste Des Attaques Ovh
Shell - (Startup|Login) script (.bash_profile, .profile, .login)

The shell login scripts are the script that launch automatically after a login shell and permit to store permanently the values of environment variables. bashrc You can found them in two directory:...



Share this page:
Follow us:
Task Runner