Nasrul Hazim Bin Mohamad

Ubuntu: Add sudoers user

Mar
26

Edit sudoers file by running joe /etc/sudoers in Ubuntu – I’m using Joe Editor.

Add users after root ALL=(ALL) ALL.

Below is the sample – I’m giving root access to two users, nasrul & mohd.salleh.

sudoers

Ubuntu: Zip & Unzip Directory

Mar
25

Zip a directory recursively

zip -r compressed_filename.zip foldername

Unzip a directory

unzip file.zip -d destination_folder

Ubuntu: ZIP a Folder Recursively

Nov
18

Run command sudo apt-get install zip in termintal to install the zip.

Then run zip -r compressed_filename.zip foldername command to zip a folder recursively.

Reference: http://askubuntu.com/questions/27349/how-do-i-compress-a-directory