How to get root access inside Vim

It often happens to forget to use sudo when editing configuration files with vim. You write your modifications and when you want to save, you get the annoying error: “E45: ‘readonly’ option is set (add ! to override)”. The following

How to delete users in Linux with the generical userdel command

We already know how to create users in Linux, now let’s learn how to delete them: userdel The generical low level tool for deleting users is userdel: Syntax:userdel [options] user $ tail -3 /etc/passwd | cut -d ‘:’ -f 1,6

How to install wget on FreeBSD 9.0

To use the GNU Wget command on FreeBSD 9.0, you have to install it first. You can install it either from ports, or from the internet. Use only one of the two methods listed above. I recommend the pkg_add one

Three usefull shell tricks for creating zips

There tricks are usefull because you often need to zip only a certain type of files or all the files in a directory. In this article I will also prove the power of the asterisk (*) wildcard: I have this

How to create, split, join and extract zip archives in Linux

I create zip archives when I need to send them to the Windows people. And I usually have to split the archives because of the attachment size limit on email. 1. How to compress files with zip: Syntax: zip

How to change the default text editor in bash, zsh and ksh

The default editor in Debian/Ubuntu/Linux Mint is Nano. I will change it to ViM, for bash, zsh and ksh. Both, the EDITOR and VISUAL environment variables are used for setting the default editor. Set them to the same value, in

How to install vim on FreeBSD

In this tutorial I will show you how to install vim on FreeBSD 9.0 and set it as a default editor: By default, FreeBSD has only vi and gedit, which are both awful. Use only one of the following installations.

The first steps in FreeBSD: installing gnome2 and xorg ; mounting procfs

FreeBSD 9.0 (or earlier) can be installed in Text User Interface (TUI) only, which reminds me of the Flintstone’s epoch. After FreeBSD installation finished, I installed (from the internet) gnome2 and xorg : # pkg_add -r gnome2 [it took a while,

Three tools for creating users in Debian based distros: useradd, adduser and newusers

The three commands for creating users in Debian based Linux distros are useradd, adduser and newusers. The generical useradd command: The useradd command is universal, the same for all the Linux distributions. I wrote an article about the useradd command



Subscribe to get the latest Linux news and how to guides directly on your e-mail!