Linux Articles

Page 68 of 134

How to Set Wget Connection Timeout in Linux?

Kunal Verma
Kunal Verma
Updated on 17-Mar-2026 2K+ Views

Wget is a free GNU command-line utility for downloading files from web servers using HTTP, HTTPS, and FTP protocols. When downloading files over unreliable network connections, you may encounter timeouts that cause downloads to fail. Linux provides several wget timeout options to handle these situations effectively. Installing Wget in Linux Most modern Linux distributions come with wget pre-installed. To check if wget is available, open your terminal and type wget. If installed, you'll see "wget: missing URL". If not installed, you'll see "command not found". Ubuntu and Debian sudo apt install wget CentOS ...

Read More

How to Show the wget Progress Bar Only in Linux?

Kunal Verma
Kunal Verma
Updated on 17-Mar-2026 2K+ Views

Remote management of UNIX/Linux/BSD servers via SSH session is a common practice. For installation, you might need to download software or other files. While Linux has several graphical download managers, the wget command-line tool is preferred for non-interactive downloads. The wget command supports various Internet protocols including HTTP, HTTPS, and FTP. Basic Wget Usage The simplest use of wget is downloading a single file to your current directory. Type wget followed by the file URL − $ wget https://www.tutorialspoint.com/index.htm --2022-12-26 10:18:13-- https://www.tutorialspoint.com/index.htm Resolving www.tutorialspoint.com (www.tutorialspoint.com)... 192.229.221.69 Connecting to www.tutorialspoint.com (www.tutorialspoint.com)|192.229.221.69|:443... connected. HTTP ...

Read More

Parse Command Line Arguments in Bash on Linux

Kunal Verma
Kunal Verma
Updated on 17-Mar-2026 3K+ Views

Command-line arguments are parameters passed to bash scripts that allow users to customize script behavior without modifying the script itself. These arguments can be processed sequentially as positional parameters or parsed as options using built-in utilities like getopts and external tools like getopt. Note − Linux commands are case-sensitive. Basic Command Line Arguments Bash automatically stores command-line arguments in special variables: $0 − Script name $1, $2, $3... − Positional arguments $# − Number of arguments $@ − All arguments as separate strings $* − All arguments as a single string #!/bin/bash ...

Read More

Skip Hidden Files and Directories During Recursive Copy

Kunal Verma
Kunal Verma
Updated on 17-Mar-2026 2K+ Views

Recursive copying is a common task in Linux systems, but sometimes we need to exclude hidden files and directories (dotfiles) during the process. Hidden files in Linux are those that start with a dot (.) and are typically used for configuration files and system data that should remain invisible during normal operations. This tutorial demonstrates various methods to skip hidden files and directories when performing recursive copy operations using different Linux utilities. Note − Linux commands are case-sensitive. Using cp Command with Shell Globbing The standard cp command can be combined with shell globbing patterns to ...

Read More

Testing Bash Scripts With Bats in Linux

Kunal Verma
Kunal Verma
Updated on 17-Mar-2026 721 Views

Bash Automated Testing System (BATS) is a testing framework designed specifically for bash scripts. It allows developers to write automated tests for their bash code, ensuring scripts function correctly before deployment and improving code reliability in production environments. BATS provides a structured approach to testing bash scripts similar to testing frameworks available for other programming languages like Python or Java. It uses a simple syntax that makes writing and maintaining tests straightforward for shell script developers. What is BATS? BATS stands for Bash Automated Testing System. It is a TAP-compliant testing framework that runs tests written in ...

Read More

The "Oldconfig" Target In The Linux Kernel Makefile

Kunal Verma
Kunal Verma
Updated on 17-Mar-2026 821 Views

The Linux kernel provides various configuration targets through its Makefile system to help developers and system administrators build customized kernels. The oldconfig target is a crucial configuration option that allows you to update an existing kernel configuration while preserving your previous settings and only prompting for new options introduced in newer kernel versions. Note − Linux commands are case-sensitive. Understanding the Kernel Build System The Linux kernel build system uses a sophisticated Makefile structure to manage the compilation process. The configuration system determines which features, drivers, and subsystems get included in the final kernel image. There are ...

Read More

How to Call an External Program Using awk

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 1K+ Views

Awk is a powerful text processing tool that can automate various tasks such as data manipulation, filtering, and reporting. One of its most interesting features is the ability to call external programs from within an awk script, extending its functionality beyond text processing. Understanding the system() Function The system() function is used to execute external commands from within awk. The syntax is straightforward: system(command) The command argument is the external command you want to execute. When system() is called, awk passes the command to the shell for execution. The shell executes the command and ...

Read More

Read Random Line From a File in Linux

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 2K+ Views

In Linux, reading a random line from a file can be a useful task in various scenarios. For example, when you want to select a random word from a dictionary or randomly select a line from a log file for analysis purposes. There are several ways to read a random line from a file in Linux. In this article, we will explore different methods to achieve this task along with their pros and cons. Method 1 − Using shuf Command The shuf command is a simple and efficient way to read a random line from a file in ...

Read More

Linux Job Control &, disown, and nohup

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 924 Views

Linux is an open-source operating system that is widely used in industry. One of the most notable features of Linux is its command-line interface (CLI), which provides flexibility and power to users. When working in the command line, it is common to run multiple commands concurrently. However, sometimes, you may want to control how these commands are executed and how they interact with each other. This is where job control comes in. Job Control Job control refers to the ability to manage and manipulate running processes in a Linux system. It allows users to start, stop, pause, resume, ...

Read More

Process Memory Management in Linux

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 9K+ Views

Process memory management is a crucial aspect of any operating system. In Linux, the memory management system is designed to efficiently manage memory usage, allowing processes to access and use memory they require while preventing them from accessing memory they do not own. Process Memory Layout Every Linux process has a standardized memory layout divided into distinct segments: Linux Process Memory Layout Stack High Address Unused Heap Data (BSS) ...

Read More
Showing 671–680 of 1,338 articles
« Prev 1 66 67 68 69 70 134 Next »
Advertisements