Where Are .vimrc and vimrc Files?

Where Are .vimrc and vimrc Files?

Vim is a popular command-line text editor that provides a lot of advanced features. These features can be configured in different ways from the Vim interface or command line or configuration files named .vimrc and vimrc . Vim Configuration Files Vim basically provides 2 configuration files. The first configuration file is named .vimrc and used … Read more

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

List Upgradeable Packages with apt In Ubuntu

List Upgradeable Packages with apt In Ubuntu

Ubuntu uses the apt and apt-get command in order to manage packages. The apt is the next-generation update of the apt-get command and provides the same features with some extra useful features. The apt command can be used to list upgradeable packages before and upgrade. Update Package and Repository Information with “apt update” The apt … 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