≡ Menu

FAQ

Question: I would like to understand the basics of how to write and execute XQuery program on Linux OS. Can you explain it with a simple example? Answer: In this article, let us review very quickly how to write a basic Hello World XQuery program and execute XQuery program on Linux or Unix OS. 1. [...]

{ 2 comments }

How To Install, Edit, or Remove Cron Jobs in Batch Mode

Question:  How can I install all the schedule jobs from a text file to the crontab? Also, can I remove all the cron jobs at once instead of removing the individual lines from the crontab? Answer: You can install, edit and remove crontab in batch mode as examples below. Also, refer to our 15 crontab [...]

{ 3 comments }

Unix bc Command Line Calculator in Batch Mode

You may be using bc command in command line for calculations. It can also be used for batch mode calculations as explained below. 1. Calculation using Single command $ echo "4+10" | bc 14 2. Calculation using Multiple commands $ echo "obase=15;5+9" | bc E 3. Using previous results in the current operation In the [...]

{ 5 comments }

Question: I would like to understand the basics of how to write and execute a Fortran program on Linux OS. Can you explain it with a simple example? Answer: In this article, let us review very quickly how to write a basic Hello World Fortran program and execute *.f program on Linux or Unix OS. [...]

{ 6 comments }

Ubuntu Tips: How To View System Log Files in GUI

Question: When debugging an issue on Ubuntu, I typically go to the command line to view the log file. Are there any GUI log file viewers available for Ubuntu? Answer: Ubuntu comes with an inbuilt system log file viewer. Launching System Log Viewer Click on System -> Administration -> Log File Viewer, to launch the [...]

{ 2 comments }

How To Execute Ping Command Only For N number of Packets

Question: When I execute ping command from the command line, it keeps sending the packets until I hit CTRL-C to terminate the ping command output. How can I execute ping command only for N number of packets and terminate the output automatically? Answer: Use ping option -c to specify the number of packets. After sending [...]

{ 1 comment }

Question: I’m trying to capture the output of the top command into a file. When I execute top > output.txt, the output.txt file contains lot of junk characters. What is the best method to capture the output of the top command into a readable text file? Answer: Use the top command batch mode operation option [...]

{ 15 comments }

Question: I would like to understand the basics of how to write and execute a small talk program on Linux OS. Can you explain it with a simple example? Answer: In this article, let us review very quickly how to write a basic Hello World SmallTalk program and execute *.st program on Linux or Unix [...]

{ 0 comments }