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: Text Editor - Vi (VIM)
  • with emacs: Ctl-x Ctl-c





Discover More
Bash Liste Des Attaques Ovh
How to return two variables or more from a bash function?

This article shows you how you can return 2 or more variables from a bash function. Within your shell (remotely mostly within putty) Edit it with your favorite edition technique and add the bash...
Bash Liste Des Attaques Ovh
Linux - File

Linux file management See Using Parameters Expansion Removal From a path string where the file does not exist dirname returns the first parent of an existing path file. ...
Linux - Group (Gid)

Every user who has access to a Linux system needs a login and a password. Each user must belong to a primary group and for security or access purposes can belong to several secondary groups. The easiest...
Linux - Loopback IP configuration

To configure the host to resolve host names to the loopback IP, the /etc/hosts file must be modified to contain the following entries: After doing so, you can check that the host name resolves to the...
Card Puncher Data Processing
Linux / Unix

Linux is an open source software and anyone can take it and create this own Linux (of distribution). It's why you can find a lot of distribution on the market : Red Hat Oracle Enterprise Linux (which...
On Linux, how to change the Kernel Parameter values (sysctl.conf)?

This article talks the Kernel Parameters Management, and shows you how to change them. Enter the following command to display the current values of the kernel parameters: where para is the beginning...
Card Puncher Data Processing
Oracle Database - Automating Shutdown and Startup on Linux

Automating database startup and shutdown guards against incorrect database shutdown. Since the version 11.2, it's recommended to use Oracle Restart but a single database installation doesn't install it....
Oracle Database 11gr2 Typical Installation
Oracle Database - Installation 11g Release 2 (11.2) on Linux OEL 5 (X86)

Installation of Oracle Database 11g Release 2 (11.2) on Oracle Enterprise Linux 5. Linux OEL installation login as root RAM: At least 1 GB swap space The following table describes...
Oracle Database Installationl Location 11gr2 Oel Linux X86 64
Oracle Database 11gR2 - Installation on Linux OEL 5 Update 5 (x86_64)

Installation of Oracle Database 11g Release 2 (11.2) x86_64 on Oracle Enterprise Linux 5 Update 5 on the file system (ie without ASM) or GRID. Linux OEL installation login as root ...
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. You can found them in two directory: ...



Share this page:
Follow us:
Task Runner