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

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

What Will Happen When Delete Root File System with “rm -Rf /”?

What Will Happen When Delete Root File System with "rm -Rf /"?

The Linux geeks talk about the Linux file system structure its benefits and advantages over other operating system file systems etc. The Linux uses the root or / as the file system root and layout files and folders under this in a structural manner. Linux mostly used with commands like mkdir, rm, etc. But you … Read more

How To Run “sudo” Command Without Password with NOPASSWD?

How To Run "sudo" Command Without Password with NOPASSWD?

Linux distributions like Ubuntu, Debian, Mint, Kali, CentOS, RHEL, SUSE, etc. provide the sudo command in order to execute and run a command with root privileges without logging as the root user. The sudo command is very popular for daily usage power users generally provided the ability to run sudo command. The sudo command configuration … Read more