[go: up one dir, main page]

0% found this document useful (0 votes)
101 views4 pages

Linux Commands For DFT Engineers

This document provides essential Linux commands specifically for DFT engineers, covering file and directory navigation, viewing file content, searching and parsing, process management, environment setup, shell scripting, compression and archiving, remote access and transfer, system information, and help and history commands. Each command is accompanied by examples for clarity. It serves as a quick reference guide for common tasks in a Linux environment.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
101 views4 pages

Linux Commands For DFT Engineers

This document provides essential Linux commands specifically for DFT engineers, covering file and directory navigation, viewing file content, searching and parsing, process management, environment setup, shell scripting, compression and archiving, remote access and transfer, system information, and help and history commands. Each command is accompanied by examples for clarity. It serves as a quick reference guide for common tasks in a Linux environment.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Essential Linux Commands for DFT Engineers

1. File & Directory Navigation


pwd:
Show current directory.
Example: pwd
ls -l:
List files with details.
Example: ls -l
cd <dir>:
Change directory.
Example: cd ~/dft_project/logs/
mkdir <dir>:
Create a new directory.
Example: mkdir netlist_files
rm <file>:
Delete a file.
Example: rm temp.log
rm -r <dir>:
Delete a directory recursively.
Example: rm -r old_reports/
cp <src> <dest>:
Copy file.
Example: cp test.tcl backup/
mv <src> <dest>:
Move or rename file.
Example: mv netlist.v src/

2. Viewing File Content


cat <file>:
View file content.
Example: cat scan_chain.log
less <file>:
Scroll through a file.
Example: less scan_chain.log
tail -n N:
Last N lines of a file.
Example: tail -n 20 log.txt
tail -f:
Live log monitoring.
Example: tail -f sim.log

3. Searching and Parsing


grep 'pattern' file:
Search for text in files.
Example: grep "ERROR" sim.log
awk '{print $1}' file:
Print specific columns.
Example: awk '{print $1, $3}' report.txt
sed 's/old/new/g' file:
Replace text.
Example: sed 's/old/new/g' file.v

4. Process Management
ps -ef:
List all processes.
Example: ps -ef | grep vcs
kill PID:
Terminate a process.
Example: kill 12345
top:
Show system usage.
Example: top

5. Environment Setup
source file.sh:
Load tool environment.
Example: source /tools/synopsys/dft/setup.sh
export VAR=value:
Set environment variable.
Example: export TOOL_PATH=/tools/synopsys

6. Shell Scripting
chmod +x script.sh:
Make script executable.
Example: chmod +x run_dft.sh
./script.sh:
Run script.
Example: ./run_dft.sh

7. Compression & Archive


tar -czf file.tar.gz dir:
Create archive.
Example: tar -czf results.tar.gz reports/
tar -xvf file.tar.gz:
Extract archive.
Example: tar -xvf results.tar.gz

8. Remote Access & Transfer


ssh user@host:
Login to remote machine.
Example: ssh user@192.168.1.10
scp file user@host:path:
Transfer file.
Example: scp test.log user@server:/home/user/

9. System Info
df -h:
Disk space usage.
Example: df -h
ulimit -a:
Show resource limits.
Example: ulimit -a

10. Help & History


history:
Show command history.
Example: history
!number:
Repeat a command from history.
Example: !45
man command:
Show command manual.
Example: man grep

You might also like