how to show line numbers in emacs editor

display emacs line numbers

When editing a file in emacs, you can choose to display the line numbers just like the other text editors. show which line number First lets see how you can find the current line number that the point is in the buffer. This is useful if you don’t have line numbers enabled in the buffer. M-x what-line This will print…

how to abort, quit and exit emacs

save buffers and exit emacs

There is a long standing joke about the vim text editor which somehow depicts the complexity of the text editors when it comes to newbies……It usually goes something like this. “I have been using vi editor for two years….mostly because I cannot figure out how to exit.” Something that can be said about emacs as well, but it does have…

how to save a file or buffer in emacs editor

save file in emacs

If you have worked with emacs then you might be familiar with the concept of buffers. It is similar to what other editors might call tabs or files. In emacs, it refers to the contents of some file or directory that you had opened and it is a copy of the contents of those files. So the contents of the…

how to sort text, lines and fields in the emacs editor

sort text in emacs

Emacs has several different ways of sorting text in the buffer. You can sort lines, paragraphs and also sort text based on fields or words in the line. Sort Lines This is probably the simplest of all sorting method. The sort-lines command sorts all lines in the active region. Select the region in the buffer that you want to sort…

how to go to a specific line number in emacs

go to line in emacs

One of the common forms of navigation with in a text editor is the ability to go to specific line in the buffer by using the line number. In emacs, you can browse or navigate the buffer in several different ways and the “go to line number” feature is just one of them. The function in emacs that performs this…

how to delete lines and sentences in emacs in linux

emacs delete blank lines

There are so many different text editors in Linux to choose from. Vi and emacs are probably two of the well known editors. There are probably several hundreds more..but as you are here you probably use emacs. Although emacs is not technically just a text editor, it does have text editing capabilities and we will consider it to be one…

how to transfer files over network using scp

linux cp command to copy folders

Secure Copy or scp is a command line utility that allows you to copy files and folders between two locations. These locations can be on the same machine, on different disk drives on the same machine or even on remote machines. The utility takes care of the security and permissions while transferring the files which makes it easier to copy…

how to navigate directories in linux

cd command to change directory

One of the common task that you will perform when using the command line interface in Linux, is navigating directories. The Linux file system is hierarchical in nature and the top most directory is called the root and is denoted by the forward slash (/). The command used to change the current working directory is called cd (Change Directory). It…

how to merge two or more directories in linux

rsync examples in linux

Before we merge two or more directories, we need to define what we mean by “merge” in the context of directories. There can be a variety of requirements that could be named as merging of directories. Let’s assume that merging of (two or more) directories means “to create a new directory with files from all of the merged directories“. There…

how to enable and disable ipv6 in linux

linux sysctl config file

IP addresses provide an identification and address to devices in a network so that they can communicate with other devices. These IP addresses need to be unique so that the device can be uniquely identified with in the network. Historically, Internet Protocol (IP) version 4 (or IPv4) was used to assign addresses. As the number of devices and networks on…

how to change encoding in gedit text editor

gedit file open dialog

GEdit is one most popular text editor in Linux desktops. It comes with a whole lot of functionalities. Often times you will need to change the encoding of the file you are viewing in the editor. Many of the editors provide you with the ability to change the file encoding on the fly. We will see how we can change…

how to change desktop wallpaper in kde plasma

As with any self respecting window manager, Plasma (KDE) also give you the ability to set or change wall papers on your desktop. There are several different options when setting wallpaper for your desktop. If you have multiple screens, you can have separate or different configuration for each of your screens or desktops. You can choose to have a static…