MCA Articles

Page 83 of 95

Metropolitan Area Networks (MAN)

Vikyath Ram
Vikyath Ram
Updated on 16-Mar-2026 7K+ Views

A Metropolitan Area Network (MAN) is a network with a size greater than a LAN but smaller than a WAN. It normally comprises networked interconnections within a city that also offers a connection to the Internet. A MAN typically covers a geographical area ranging from 5 to 50 kilometers, making it ideal for connecting multiple offices, campuses, or buildings across a city. Distinguishing Features of MAN Network size − Generally ranges from 5 to 50 km. It may be as small as a group of buildings in a campus to as large as covering an entire ...

Read More

Local Area Networks

Rishi Raj
Rishi Raj
Updated on 16-Mar-2026 17K+ Views

A Local Area Network (LAN) is a private network that connects computers and devices within a limited area like a residence, an office, a building, or a campus. On a small scale, LANs are used to connect personal computers to printers. However, LANs can also extend to a few kilometers when used by companies, where a large number of computers share a variety of resources like hardware (e.g., printers, scanners, audiovisual devices), software (e.g., application programs), and data. Distinguishing Features of LAN Limited geographic scope − Network size is limited to a small geographical area, presently ...

Read More

Basic Network Hardware

Jai Janardhan
Jai Janardhan
Updated on 16-Mar-2026 30K+ Views

The basic computer hardware components that are needed to set up a network are as follows. Each device plays a specific role in enabling communication between computers and other devices on the network. Network Cable NIC Switch Router Gateway Internet ...

Read More

Why should eval be avoided in Bash, and what should I use instead?

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 2K+ Views

eval is a built-in Bash command that concatenates its arguments into a single string, joins them with spaces, then executes that string as a bash command. While powerful, eval poses serious security risks and should generally be avoided. How eval Works Let's see a basic example of eval in action − $ var="echo hello" $ echo $var $ eval $var Running the above code gives us the following result − echo hello hello When eval is applied, the variable expands and gets executed as a command, no longer behaving as ...

Read More

What are the calling conventions for UNIX & Linux system calls on i386 and x86-64

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 943 Views

A system call is the fundamental interface between an application and the Linux kernel. When a Unix/Linux program does file I/O, network data transfer, or invokes processes that interact with low-level instructions, system calls are involved. Making these calls usually involves using a library called glibc which contains the functions. Common System Calls Below is a list of some frequently used system calls and their purpose ? Sr.No ...

Read More

Looping through the content of a file in Bash

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 7K+ Views

Reading file contents line by line is a common requirement in Bash scripting. There are several approaches to accomplish this task, each with its own advantages depending on your specific needs. Creating a Sample File First, let's create a sample file to work with ? # Create the file cat > a_file.txt

Read More

How to convert DOS/Windows newline (CRLF) to Unix newline (LF) in a Bash script?

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 2K+ Views

When transferring files between Windows and Unix systems, you'll often encounter issues with end-of-line characters. Windows uses CRLF (Carriage Return + Line Feed) while Unix uses LF (Line Feed) only. This guide shows three methods to convert Windows line endings to Unix format using Bash. Understanding the Problem Windows files use \r (CRLF) for line endings, while Unix systems use (LF). When viewing Windows files on Unix, you may see ^M characters at the end of each line. Method 1: Using dos2unix The dos2unix command is specifically designed for this conversion and comes pre-installed on ...

Read More

Linux WC Command Examples to Count Number of Lines, Words, Characters

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 571 Views

The wc command (word count) is a fundamental Linux utility for counting lines, words, characters, and bytes in files. It's commonly used with the -l option for line counting, but offers several other counting options through various arguments. Available Options Option Command Function 1 wc -c Display number of bytes 2 wc -m Display number of characters 3 wc -w Display number of words 4 wc -l Display number of lines 5 wc -L Display length of longest line ...

Read More

How to Search and Remove Directories Recursively on Linux?

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 596 Views

Removing directories is a regular process for anyone working on Unix systems. But sometimes we also need to find the directories first and then decide to delete them. One hurdle in deleting directories is doing recursive deletion because by default Unix systems do not allow deleting of a directory if it is not empty. In this article we will see how to find and remove directories recursively using two effective methods. Using find and exec The find command with -exec searches for directories and executes the removal command directly. This method is efficient for finding and deleting directories ...

Read More

How to Re-run Last Executed Commands in Linux?

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 374 Views

Re-running commands in the Linux terminal is a common task that saves time and effort. Linux provides several built-in methods to execute previously run commands without retyping them. Understanding these shortcuts improves productivity when working with the command line. Viewing Command History Before re-executing commands, you can view your command history using the history command. This displays all previously executed commands with line numbers ? history The output shows numbered commands from your session history ? 1 perl -v 2 sudo apt update 3 cal 4 ls -l 5 curl -s https://ipvigilante.com/122.175.62.177 ...

Read More
Showing 821–830 of 941 articles
« Prev 1 81 82 83 84 85 95 Next »
Advertisements