Skip to main content

Posts

Showing posts from April, 2018

Difference between empty() and remove() in Jquery?

empty():                     Removes the content but not the tags i.e,div,p,span..etc. remove():                    Removes both the content and tags Live Example jsfiddle: https://jsfiddle.net/akhilreddyyalla/xpvt214o/151716/ Real life example:                               Consider a bottle having water, empty()  : empty the bottle  i.e, emptying the water from bottle but the bottle exists.   remove(): remove the bottle i.e, removing bottle with water.  

What is CronTab? What does it do?

What if you want to execute a file daily at particular time ? Running it manually daily is  absolutely not a good idea ..!   Then What do you do ? For this kind of manual works , To Automate it , there is a daemon in linux called "CRONTAB" . Crontab : Crontab called as CRON TABle Where  cron is a daemon to run periodically on a given time and Table consists of scheduled tasks , jobs  i . e , Crons . Crontab Options:    crontab - l : lists all the crontabs scheduled . crontab - e : Edits existing cron or else create new cron. crontab - r : Removes scheduled cron jobs . crontab - i - r : Prompts before deleting user 's crontab i.e,asks your permission.  crontab -u username -l : lists all the crons of a particular user.    Setting up a cron: Press Ctrl+Alt+t to open the terminal and paste following command.