≡ Menu

Linux

4 Methods to Take Screenshot Capture in Ubuntu Linux

Screenshot is an image taken by a computer to capture the visible items on the monitor or any other output devices. There are several ways of taking screenshots in Linux. In this article, we will cover few tools that are used for taking screenshots. 1. Use Print Screen This is the most common method to [...]

{ 22 comments }

Question: I have a disk that is greater than 2TB size. I cannot create a partition on this >2TB disk using fdisk. Can you explain me with an example on how to create a partition on a disk that is larger than 2TB using parted and GPT format? Answer: If you are using fdisk to [...]

{ 20 comments }

10 Linux nslookup Command Examples for DNS Lookup

nslookup is a network administration tool for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or any other specific DNS record. It is also used to troubleshoot DNS related problems. This article provides few examples on using the nslookup command. nslookup can operate on both “Interactive mode” and “Non-Interactive [...]

{ 12 comments }

Crontab Log: How to Log the Output of My Cron Script

Question: I created a backup.sh shell script and added it to my crontab to execute it daily. How do I verify whether the backup cron script job ran successfully? Also, I have several echo statements inside my backup.sh shell script. How do I save the output of my script to a log file when it [...]

{ 13 comments }

This article explains the basics of Linux export command and shows how to set, view and manipulate Linux env variables using export command. Environment variables in Linux are used by most of the activities taking place on a Linux system. From executing a standard command like ‘ls’ to installing a new software in your Linux [...]

{ 10 comments }

Checksum is used for verifying the integrity of the data. Suppose some file is being copied over a network or over a system and due to some event like network connection loss or sudden reboot of machine the data did not get copied completely. Now, how would you verify the integrity of data? Well, its [...]

{ 12 comments }

As with any OS, file handling is a core concept in Linux. Any system programmer would learn it as one of his/her initial programming assignments. This aspect of programming involves system files. Through file handling, one can perform operations like create, modify, delete etc on system files. Here in this article I try to bring [...]

{ 47 comments }

wget vs curl: How to Download Files Using wget and curl

Question: I typically use wget to download files. On some systems, wget is not installed and only curl is available. Can you explain me with a simple example on how I can download a remote file using curl? Are there any difference between curl and wget? Answer: On a high-level, both wget and curl are [...]

{ 17 comments }