How To Save A File In Vim/Vi?

How To Save A File In Vim/Vi?

Vim is a useful command-line text editor. As a featureful text editor, Vim/Vi provides different ways and commands in order to save a file. In this tutorial, we examine how to save the file with the same name or a different name or exit after saving the file. Save File with write Command The write … Read more

How To Save File and Quit In Vim/Vi?

How To Save File and Quit In Vim/Vi?

Vim or Vi is the most advanced text editor designed for command-line usage. Vim with its predecessor Vi provides a lot of features that are more than a GUI-based text editor. When you complete the job on a file you generally save the file and exit or quit. Vim provides easy-to-use shortcuts and commands for … Read more

How To Search In Vim/Vi?

How To Search In Vim/Vi?

As a command-line tool searching different terms, words, sentences in a text can be done by using commands. Vim is a complex text editor and provides different search features like forwarding, backward search, whole word search, case-insensitive search, etc. Basic Search In the basic search, we will provide some simple terms in order to search … Read more

How To Exit From Vim?

How To Exit From Vim?

Vim is a popular command-line text editor. As a command-line editor, Vim is managed and used with commands and keyboard shortcuts. Exiting from vim can be done in different ways. In this tutorial, we examine different exit methods like save and exit, exit without saving, exit by saving specific changes for the specified lines, and … Read more

How To Undo and Redo In Vi/Vim?

How To Undo and Redo In Vi/Vim?

The vim editor provides the ability to undo and redo changes. The undo operation will revert back to the recently changed and the redo operation will do the reverse of the undo which means changes will be restored back from undoing operations. Make Some Changes For this tutorial, we will open a file with vim … Read more

Go To The Specified Line Numer In Vi/Vim

Go To The Specified Line Numer In Vi/Vim

Vi/Vim is a command-line text editor which is managed via keyboard shortcuts and commands. In order to move the cursor into different or specified lines, you should use the keyboard shortcuts or commands. In this tutorial, we will examine how to move or jump into a specified line in vi/vim. Start Vi/Vim By Jumping Specified … Read more

Linux .bash_profile File

Linux .bash_profile File

The bash shell provides a lot of features that can be configured by using bash configuration files like /etc/profile , ~/.bash_profile , ~/.bash_login etc. The .bash_profile file is located in the current user home directory as a hidden file. In some distributions may use the ~/.bashrc according to the .bash_profile file. In this tutorial, we … Read more

Linux top Command Tutorial with Examples

Linux top Command Tutorial with Examples

Linux provides the top command in order to monitor system resources from the command-line easily. The top common provides information about the CPU, Memory, Network, Process usage in real-time by updating the information every 2 seconds. The top command is provided by default by the popular Linux distributions and there is no need to install … Read more

How To Delete Line In Vi/Vim?

How To Delete Line In Vi/Vim?

Vi or vim provides different commands for operations. One of these operations is deleting the line. Vi or vim provides different commands to delete single or more lines in different ways. Delete Current Line The command to delete the current line in Vi/Vim is dd keys. The current line is the cursor’s current location. But … Read more

Linux cd Command Tutorial with Examples

Linux cd Command Tutorial with Examples

The cd command is used to change the current working directory and navigate between different directories. The cd is the short form of the change directory term. The cd command is one of the most used commands in Linux. cd Command Syntax The cd command has the following simple syntax. Current Working Directory Before starting … Read more