Essential Linux Command-Line Operations

Listing Directory Contents The ls utility is used to list directory contents and file information. By default, it displays non-hidden files in the current working directory. To view detailed metadata such as permissions, ownership, and size, use the -l flag. To include hidden files—those prefixed with a dot (.)—append the -a option. # Detailed ...

Posted on Tue, 11 Aug 2026 16:40:31 +0000 by farsighted

Fundamental Shell Navigation and File Management Commands

Working Directory Navigation Use pwd to output the absolute path of the active terminal session. Directory traversal relies on cd. Common navigation patterns include: cd /var/log: Absolute path navigation. cd logs/: Relative path to a subdirectory. cd ~ or cd: Return to the home directory. cd ~admin: Jump to another specific user's home (requi ...

Posted on Fri, 31 Jul 2026 16:21:12 +0000 by recycles

Removing Previously Pushed Files from Git Remote Repository

When working with Git, developers sometimes accidentally commit files that shouldn't be tracked, such as IDE configuration files (*.iml, *.project, *.settings) or editor metadata (.idea/*). While adding these to .gitignore prevents future commits, occasionally these files get pushed to remote repositories. This guide demonstrates how to remove ...

Posted on Wed, 17 Jun 2026 17:30:11 +0000 by kirannalla

Essential Linux Commands for Directory Navigation and File Management

Directory Navigation and Path Resolution 1. pwd Prints the absolute path of the current working directory. This is useful for verifying your exact location within the filesystem hierarchy. 2. cd Changes the active shell directory. It accepts both absolute paths (originating from the root /) and relative paths (originating from the current worki ...

Posted on Sat, 16 May 2026 17:49:10 +0000 by sanch