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

SVN: Create new SVN user in Ubuntu

Mar
26


sudo htpasswd /etc/subversion/passwd username
New password: *******
Re-type new password: *******
Adding password for user username

OS: Ubuntu 12.04 LTS

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

PostgreSQL: Export to CSV

Mar
11
COPY TABLE_NAME
TO FILE_PATH
WITH DELIMITER ','
CSV HEADER

Please ensure the file path is writeable