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…
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…
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.…
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,…
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…
The useradd command is generical for all the Linux distros: Syntax: useradd [options] username Creating users with the default configuration: $ sudo useradd yoda $ grep yoda /etc/passwd yoda:x:1010:1012::/home/yoda:/bin/sh To view the default options for creating users, use useradd -D…
In this tutorial, I will teach you how to copy files and folders from one place to another, by using the cp command. Syntax1: cp [options] file filecopy Syntax2: cp [options] -T filecopy fileĀ I always use the first syntax…
Sometimes you don’t need to display only a directory’s content, but also the directory hierarchy, in order to see all the files paths. In Linux / Unix you can do that the command tree. It displays the output in a…