Linux Commands Reference - Complete Linux Command Guide
Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.
cd
Change working directory
Syntax
cd [DIRECTORY]Common Options
~Change to home directory-Change to previous directory..Change to parent directory.Current directory/path/to/dirChange to absolute pathrelative/pathChange to relative path-PUse physical path (resolve symlinks)-LUse logical path (follow symlinks)-eError if directory does not existCommon Examples
cd /var/logChange to /var/log directory
cd ~Change to home directory
cd -Return to previous directory
cd ..Change to parent directory
cd ../..Go up two directory levels
cd -P /symlinkResolve symlink then change
cd ~/DocumentsChange to ~/Documents
cd /Change to root directory
Related Tools
More Code & Dev Tools
Color Palette Generator
Generate harmonious color palettes online. Create color sche...
Regex Cheatsheet
Quick reference for regular expression patterns. Character c...
JavaScript Obfuscator
Obfuscate and protect JavaScript code. Make your code harder...
CSS Formatter
Format and minify CSS online. Beautify CSS code or compress ...
Color Extractor
Extract colors from images online. Get dominant colors and c...
Code Formatter
Format and beautify code online. Support multiple languages ...
IP Calculator
Calculate IP ranges, subnet masks, and CIDR notation. Networ...
Port Checker
Check if a port is open online. Test port availability and c...
JavaScript Formatter
Format and beautify JavaScript code online. Improve code rea...
Color Converter
Convert between HEX, RGB, HSL color formats. Color picker wi...
Code Minifier
Minify HTML, CSS, and JavaScript code. Reduce file size by r...
XML Formatter
Format and minify XML online. Beautify XML code or compress ...