Found 2065 Articles for Operating System

Tracking Down Where Disk Space Has Gone on Linux

Satish Kumar
Updated on 14-Mar-2023 16:30:54

7K+ Views

As a Linux user, you might have come across a situation where you ran out of disk space, but you are not sure where all space has gone. It can be frustrating, but fortunately, there are several tools and techniques you can use to track down where disk space has gone on Linux. In this article, we will cover following sub-headings to help you identify where your disk space has gone − Check Disk Usage The first thing to do is to check disk usage of your system. Linux has several command-line tools that can help you do that. most ... Read More

What does opt mean in Linux

Satish Kumar
Updated on 14-Mar-2023 16:30:28

1K+ Views

Linux is a popular operating system that is widely used for its open-source nature and flexibility. Linux command line interface (CLI) is a powerful tool that allows users to control and manipulate their system. One of most commonly used commands in Linux CLI is "opt." In this article, we will explore what opt means in Linux, and how it can be used to optimize your system. What is opt in Linux? The opt command is a command-line option that is used to modify behavior of a command or utility. It is used to specify optional arguments that may or may ... Read More

What Does a Double-Dash in Shell Commands Mean

Satish Kumar
Updated on 14-Mar-2023 16:30:03

3K+ Views

Introduction If you are familiar with command line interface, you have probably encountered a double-dash (--) in some of commands you use. This article seeks to explain what double-dash means and how it affects behavior of shell commands. What is a Double-Dash in Shell Commands? A double-dash is a syntax used in shell commands to signify end of command options and beginning of positional arguments. In other words, it separates command options from arguments that command operates on. Many shell commands allow you to specify options or flags that modify behavior of command. For example, ls command allows you to ... Read More

Append Lines to a File in Linux

Satish Kumar
Updated on 14-Mar-2023 16:29:30

16K+ Views

Introduction In Linux, files are often used to store data that is either created by a program or generated by user. It is common for users to append new lines of data to existing files rather than creating new ones from scratch. This article will explain how to append lines to a file in Linux, including several subheadings and examples. Using echo command The easiest way to append new lines to a file is by using echo command. echo command allows you to display a message on screen, but it can also redirect message to a file. Here's how to ... Read More

Recursively List All Files in a Directory Including Symlinks

Satish Kumar
Updated on 14-Mar-2023 16:28:57

1K+ Views

Introduction When it comes to managing files and directories in any operating system, being able to list all files in a directory is an essential task. However, it becomes a bit more complicated when you need to recursively list all files in a directory, including symlinks. This is particularly important for developers and system administrators who work with large, complex file systems. In this article, we will cover how to recursively list all files in a directory, including symlinks, with examples and subheadings. What is a symlink? A symlink, also known as a symbolic link or soft link, is a ... Read More

Repeat a Linux Command at a Given Interval

Satish Kumar
Updated on 14-Mar-2023 16:25:57

8K+ Views

Linux is a powerful operating system that offers a wide range of command-line tools for executing various tasks. One of tasks that often need to be performed is repeating a command at a given interval. This feature can be useful for several reasons, such as monitoring system performance, running scheduled tasks, and performing backups. In this article, we will explore how to repeat a Linux command at a given interval. We will discuss various ways to achieve this, including using cron utility, watch command, and sleep command. Using Cron to Repeat a Command The cron utility is a time-based job ... Read More

Recursive Search and Replace in Text Files in Linux

Satish Kumar
Updated on 14-Mar-2023 16:25:11

2K+ Views

One of most basic and frequently performed tasks in any operating system is search and replace. This becomes even more crucial when working with text files, where multiple instances of same word or phrase may be scattered throughout document. In such cases, manually editing each instance can be both time-consuming and error-prone. In this scenario, a tool like Recursive Search and Replace in Linux comes in handy. In Linux, Recursive Search and Replace can be done via various methods. most common one involves use of command-line tools like Sed, Awk, and Perl. These tools are efficient, lightweight, and have been ... Read More

Save Modifications In-Place with AWK

Satish Kumar
Updated on 14-Mar-2023 16:24:37

451 Views

Introduction The awk command is a versatile tool used in Unix and Linux environments for text processing and manipulation. One of its key features is ability to modify files in-place, which is particularly useful when working with large datasets. In this article, we will explore how to save modifications in-place with awk, including examples and subheadings to aid understanding. Understanding Awk Before we delve into how to save modifications in-place with awk, it's important to understand what awk is and how it works. Awk is a programming language designed for processing text files, with primary focus on processing rows of ... Read More

CMake configure fails to find Qt5 on Linux

Satish Kumar
Updated on 14-Mar-2023 16:22:42

2K+ Views

Introduction CMake is an open-source cross-platform tool used for building, testing and packaging software. It is widely used in industry for its portability and ability to generate build scripts for various build systems such as make, ninja, etc. Qt is a cross-platform application development framework that is widely used in creating GUI applications. In this article, we will discuss a common issue that developers face while configuring a CMake project on Linux, i.e. "CMake configure fails to find Qt5". Understanding Issue When we configure a CMake project with Qt5, CMake needs to find Qt5 package, which includes required libraries, header ... Read More

How to investigate which process causes wakeups during laptop sleep-mode in MacOS (or Linux)

Satish Kumar
Updated on 14-Mar-2023 16:20:27

948 Views

When a laptop goes into sleep mode, operating system tries to conserve power by stopping most processes and putting computer in a low-power state. However, sometimes a process may continue to run or periodically wake up computer, preventing it from entering a deep sleep state. This can lead to increased power consumption and a shorter battery life. In this article, we'll explore how to investigate which process is causing wakeups during laptop sleep-mode in MacOS or Linux. Understanding Power Management Subsystem Before we dive into how to investigate sleep mode wakeups, it's important to understand power management subsystem in your ... Read More

Advertisements