Introduction
Before you start working on RTL design or simulation tools like Synopsys VCS, Cadence Xcelium, or Mentor Questa, it’s essential to understand how to navigate Linux directories. Almost all EDA tools are command-line driven, and knowing these commands helps you manage design files efficiently.
1. Listing Files and Directories – ls
When you log in, you start in your home directory, typically named after your username.
To see what’s inside, use:
lsThis lists all visible files and folders in your current directory.
To view hidden files (those starting with a .), use:
ls -aTo show more details like permissions, size, and timestamp:
ls -lTo list files sorted by time (latest first):
ls -ltTo view the oldest first:
ls -lrt💡 Tip: Hidden files (like .bashrc) often contain tool configurations. Avoid editing unless you know what they do.
2. Creating Directories – mkdir
You’ll often create directories for projects or testbenches.
For example, create one named unixstuff:
mkdir unixstuffTo confirm:
lsExercise: Create another directory inside it called backups.
cd unixstuffmkdir backups3. Changing Directories – cd
Move between directories using:
cd directory_nameExample:
cd unixstuffTo go back to the parent directory:
cd ..To return to your home directory anytime:
cd ~4. Displaying Pathname – pwd
To know your current location in the filesystem:
pwdExample output:
/home/chetan/unixstuffThis is helpful when writing scripts or Makefiles for simulations.
5. Useful Shortcuts
| Shortcut | Description |
| ~ | Refers to home directory |
| . | Current directory |
| .. | Parent directory |
| cd – | Switch to previous directory |
6. Keyboard Shortcuts for Bash
| Shortcut | Action |
| Ctrl + A | Jump to start of line |
| Ctrl + E | Jump to end of line |
| Ctrl + K | Delete everything from cursor onward |
| Ctrl + C | Kill/exit running process |
| Ctrl + L | Clear screen |
| ↑ / ↓ | Scroll through command history |
| Tab | Auto-complete filenames |
Summary Table
| Command | Purpose |
| ls | List files and directories |
| ls -a | List all, including hidden files |
| mkdir <name> | Create a new directory |
| cd <name> | Change to the specified directory |
| cd | Return to home directory |
| pwd | Print current working directory |
Real-World Example
In a UVM verification project, you may have directories like:
/home/chetan/pcie_uvm/env
/home/chetan/pcie_uvm/seq
/home/chetan/pcie_uvm/rtl
Using cd and ls, you can quickly navigate between env and seq folders while debugging simulations.
Practice Task
- Create directories project, src, and tb inside your home folder.
- Use pwd to verify your path.
- Use ls -lrt to check creation order.
