Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Sunday, August 5, 2018

Cron job



sudo crontab -e


# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12)
# │ │ │ │ ┌───────────── day of week (0 - 6) (Sunday to Saturday; 7 is also Sunday on some systems)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * * command_to_execute

0 0 * * * /opt/odoo12/run_backup.sh

Wednesday, March 14, 2018

Linux command

To set new password for root in Ubuntu
> sudo passwd root


To locate a file
find / -name 'pg_hba.conf' 2>/dev/null


To add new user
> sudo adduser --home /home/demo --shell /bin/bash demo


Monday, September 4, 2017

Change File Permission in Linux

I have encountered this issue when I tried to edit the file postgresql.conf and pg_hba.conf. Both are with read-only permission. So I was digging on the internet and finally found a solution.

chmod 066

The syntax:
$chmod 066 filename

$chmod 066 postgresql.conf

Eureka!


References:
http://www.filepermissions.com/directory-permission/066

Wednesday, March 29, 2017

How to increase the disk size of Linux (Ubuntu) in VMware

It took me few days how to configure to increase the disk size space of Ubuntu in VMware. Previously I only have 10gb which I use in my development but as everyday goes by more and more application installed in the system which gives me warning that my disk space has only 300mb left.

After many resources that I research in google I finally found the right guide/tutorial how to increase the disk space. This is the website https://www.rootusers.com/use-gparted-to-increase-disk-size-of-a-linux-native-partition/ and stated perfectly what I want.

I have added 10gb more and I can continue to code happily ever after without any warning of disk space. Eureka!



free online comma separating tool

https://delim.co/#