Tagged articles
10 articles
Page 1 of 1
Raymond Ops
Raymond Ops
Jul 11, 2025 · Operations

Master Colorful Terminal Output with echo and printf in Bash

This guide explains how to use echo and printf with ANSI escape codes in Bash scripts to produce colored text, background colors, text effects, cursor positioning, and reusable variables, providing numerous examples and visual demonstrations for terminal output customization.

BashEchoShell scripting
0 likes · 11 min read
Master Colorful Terminal Output with echo and printf in Bash
php Courses
php Courses
Jul 11, 2025 · Fundamentals

Master C++ I/O: When to Use cin/cout vs printf/scanf

This article explains C++ input/output fundamentals, comparing the object‑oriented cin/cout streams with the C‑style printf/scanf functions, providing code examples, feature comparisons, common pitfalls, and best‑practice recommendations to help developers choose the right approach for safety and performance.

Input/Outputbest-practicesc++
0 likes · 7 min read
Master C++ I/O: When to Use cin/cout vs printf/scanf
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 4, 2025 · Fundamentals

Master Java String Formatting: 9 Practical Techniques with Code Samples

This article introduces a continuously updated Spring Boot 3 case collection and provides a step‑by‑step guide to nine Java string‑formatting methods—including String.format, MessageFormat, text blocks, number grouping, rounding, zero‑padding, printf, whitespace, and concatenation—complete with runnable code examples.

MessageFormatString.formatText Blocks
0 likes · 6 min read
Master Java String Formatting: 9 Practical Techniques with Code Samples
IT Services Circle
IT Services Circle
Mar 5, 2024 · Fundamentals

Why Adding printf Can Hide Segmentation Faults: A Debugging Tale

An amusing yet instructive narrative shows how a C program that crashes with a segmentation fault can appear to work after inserting a printf, explaining that uninitialized local variables contain leftover stack data and that debugging tools like GDB reveal the true cause.

C Programminggdbprintf
0 likes · 8 min read
Why Adding printf Can Hide Segmentation Faults: A Debugging Tale
Liangxu Linux
Liangxu Linux
Mar 9, 2022 · Fundamentals

How to Build a Real‑Time Console Progress Bar in C

This guide explains the differences between carriage return and newline, explores C output buffering strategies, and provides step‑by‑step C code to create a countdown and a dynamic progress bar that updates smoothly in the terminal.

Bufferingc++console
0 likes · 6 min read
How to Build a Real‑Time Console Progress Bar in C
Open Source Linux
Open Source Linux
Sep 23, 2021 · Operations

Mastering Linux printf: Formatting and Data Output Techniques

Learn how the Linux printf command mimics C's printf function to format and output text, understand its syntax and options, and explore practical examples ranging from simple string printing to complex formatted tables using format specifiers and custom scripts.

Linuxcommand-lineformatting
0 likes · 4 min read
Mastering Linux printf: Formatting and Data Output Techniques
Sohu Tech Products
Sohu Tech Products
Mar 31, 2021 · Operations

Shell Basics: Introduction, Commands, Variables, and Scripting

This article provides a comprehensive introduction to the Bash shell, covering its purpose, user prompts, shebang syntax, execution methods, basic commands like echo and printf, variable handling, environment variables, arithmetic operations, and conditional statements for writing effective shell scripts.

BashLinuxScripting
0 likes · 14 min read
Shell Basics: Introduction, Commands, Variables, and Scripting
Liangxu Linux
Liangxu Linux
Aug 27, 2020 · Fundamentals

Mastering Linux printf: Formats, Escape Sequences, and Real-World Examples

This guide explains why printf outperforms echo in shell scripts, details its syntax, lists essential escape characters and conversion specifiers, and provides multiple practical examples—including numeric bases, floating‑point formatting, tabular output, and colored alignment—to help you format command‑line output precisely.

Linuxformattingprintf
0 likes · 5 min read
Mastering Linux printf: Formats, Escape Sequences, and Real-World Examples