Skip to content

KALI Linux – How to use the VI EDITOR – The VISUAL GUIDE


VI is widely deployed, but you may prefer Gedit or Pico.
This video is a visual introduction, for Right Brain learners.


1. Add a user

sudo adduser smile


2. How to set a password:

sudo passwd smile

You’ll be prompted to enter the password twice.

3. Add a user to a group

First, find a list of all existing groups:

cat /etc/group | more

The syntax followed by an example, which adds smile into the root group.

sudo usermod -G group smile

sudo usermod -G root smile

sudo usermod -G marketing smile

cat /etc/group | grep ‘smile’

Which groups are smile in?

4. Delete user

This will delete the user and all files.

sudo userdel -r smile

cat /etc/password | more – user should no longer exist


Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: