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

How to create users in Linux with the generical 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

The Linux cp command: with practical examples

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

The ultimate guide for displaying directory structures in Linux / FreeBSD

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

The Linux LS command: with practical examples

ls is used a lot by the Unix users. The two letter command is very powerfull, when combined with the right optins or wildcards. In this article I will use practical examples followed by explanations, so that it will be



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