1.cd /etc/apache2/sites-enabled/ 2.ls
cd /usr/local/nginx/logs/ grep 03/Feb/2018:17:2 access.log grep anyContentInFile filename
List all rules sudo iptables -L --line-numbers Above command will list all rules with (num) in first column for each rule. Now we can delete them by num sudo iptables -D INPUT (num)
Super awesome example is here.
To block an IP sudo iptables -A INPUT -s xxx.xxx.xxx.xxx -j DROP xxx.xxx.xxx.xxx is any IP address
Schedule a Job for Specific Range of Time MIN HOUR DOM MON DOW CMD eg 30 08 10 06 * /home/ramesh/full-backup 30 – 30th Minute 08 – 08 AM 10 – 10th Day 06 – 6th Month (June) * – Every day of the week better explanation # 1. Entry: Minute when the process will be started [0-60] # 2. Entry: Hour when the process will be started [0-23] # 3. Entry: Day of the month when the process will be started [1-28/29/30/31] # 4. Entry: Month of the year when the process will be started [1-12] # 5. Entry: Weekday when the process will be started [0-6] [0 is Sunday] correct ubuntu documentation # # all x min = */x So according to this your 5 8 * * 6 would run 8:05 every Saturday.
It’s super simple. For example you want to move content.txt from folder2 to folder1 content.txt
cd folder1/folder2/ mv * ../
After updating GRUB in Ubuntu I got this error and I was so afraid of this. But a YOUTUBE video helped me to recover from this. May this post can help you too.
I was using SAMSUNG laptop. Here is what we need to do.
Go to BIOS->BOOT
You will see an option ‘SECURE BOOT’ and you need to disable it. Also when you disable it you will see an other option appears named as ‘OS MODE SELECTION’. If you disable ‘SECURE BOOT’ and your OS still cant boot then you need to change the options given in ‘OS MODE SELECTION’.