July 2018
Beginner
264 pages
8h 9m
English
Let's start by creating a script using improved version of vi (called vim). If Vim (VI-enhanced) is not installed, it can be installed with sudo or root using the following command (-y is short for yes):
For Ubuntu or Debian based distributions$ sudo apt-get -y install vimFor CentOS or RHEL$ sudo yum install -y vimFor Fedora$ sudo dnf install -y vim
Open a terminal and enter the following commands to first see where your terminal is currently navigated to, and to create the script using vim:
$ pwd/home/yourUserName$ vim my_first_script.sh
The terminal window will transform into the Vim application (similar to the following screenshot) and you will be just about ready to program your first script. Simultaneously ...
Read now
Unlock full access