Linux - Utilizing Input and Output Redirection
Introduction to Redirection
There are situations where saving the output of a program to a file is necessary for later analysis. For instance, if you have a compiled program named myprog, you can disassemble it and store the result in a file called output using the following command:
objdump -d myprog > output
The > symbol is used for re ...
Posted on Sun, 07 Jun 2026 18:06:23 +0000 by MarCn
Essential Linux System Administration Commands
Disk Partition Analysis
To identify which partition a specific directory resides on, utilize the df command with the -h flag for human-readable output. For example, to determine the partition containing the /var directory:
[root@server ~]# df -h /var
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_system-lv_root 50G ...
Posted on Mon, 01 Jun 2026 17:47:32 +0000 by duelist
Methods for Accessing Network Devices
1. Switch View Overview
Switch devices offer a wide range of functions, and thus provide various configuration commands. To make it easier for users to use these commands, Huawei switches classify the command views by function. Therefore, when configuring a specific function, it is necessary to first enter the corresponding command-line view. H ...
Posted on Wed, 27 May 2026 18:30:10 +0000 by noginn
Core Hive Services and Connection Interfaces
Interaction with the Hive environment following deployment utiliezs specific service interfaces. Verification of available operations begins with the built-in help utility.
hive --service help
Executing this displays supported components including cli, beeline, hiveserver2, and various utility tools. Configuration paths and auxiliary JAR depen ...
Posted on Mon, 25 May 2026 20:25:21 +0000 by Spogliani
5 Methods to Clear File Contents in Linux
Using Standard Redirection
The most straightforward way to empty a file is by using the shell redirection operator > without a preceding command. This truncates the file to zero length immediately.
> server.log
Using the Colon or True Command
The : (colon) is a shell built-in command that does nothing and returns a success status ...
Posted on Sun, 17 May 2026 19:53:20 +0000 by TheMoose
Essential Linux File Management Commands
Creating Files with touch
Syntax
touch [options] filename
Key Options
Option
Description
-m
Update modification timestamp
-d
Set specific datetime
Examples
# Create file in current directory
$ touch example.txt
# Create file with absolute path
$ touch /tmp/sample.txt
# Create multiple files
$ touch file1.txt file2.txt file3.txt
$ ...
Posted on Thu, 14 May 2026 23:14:51 +0000 by richinsc
Linux File System Operations Reference
Data Replication, Transfer, and Removal
Replicating Data with cp
# Syntax
cp [options] source destination
cp [options] source... target_directory
# Options
-r, -R # Copy directories recursively
-i # Prompt before overwriting
-u # Copy only when the source is newer or destination is missing
-v # Verbose output
-p ...
Posted on Sat, 09 May 2026 15:00:52 +0000 by benjam
Essential Linux Command Line Operations for System Navigation and File Management
Navigating the Filesystem
pwd Command
pwd
Displays the absolute path of the current working directory.
cd Command
cd [target_directory]
Changes the current shell session's working directory.
Usage:
cd ..: Move up to the parent directory.
cd /home/user/docs: Navigate using an absolute path (starts from root /).
cd ../projects: Navigate using ...
Posted on Sat, 09 May 2026 03:41:05 +0000 by y_oda2002
Essential Windows Run Commands and Terminal Configuration
Target Environment
Operating System: Windows 10 x64 (Build 1809)
Accessing the Run Dialog
Pressing the Win + R key combination invokes the Run dialog. This utility enables direct access to programs, system folders, documents, or internet resources by entering specific aliases.
Configuring Command Prompt Dimensions
To launch the Command Prompt ...
Posted on Fri, 08 May 2026 05:12:38 +0000 by alpha2zee
Linux Essential Commands and Vi/Vim Editor Quick Reference
Chip Development Environment
Key tools for chip developmant include:
Linux/Unix operating system
EDA tools with TCL scripting
SVN/GIT for version control
Makefile build scripts
Perl/Python scripting languages
Vim/Gvim text editors
Basic Linux Commands
User and System Information
who # Display users currently logged in
whoami ...
Posted on Thu, 07 May 2026 01:39:45 +0000 by atwyman