Loading...

Linux Command Reference | 100+ Commands, Click to Copy

⚡ Linux Command Reference

100+ essential commands — click to copy · search to filter · history saved

🔍
Recent searches Clear
😕

FAQ

How do I find which process is using a port in Linux?

Use lsof -i :PORT or ss -tlnp | grep PORT. For example, lsof -i :8080 shows the process name and PID occupying port 8080.

How do I tail a log file in real time?

Use tail -f /path/to/file.log. New lines appear as they are written. Combine with grep: tail -f app.log | grep ERROR to filter by keyword.

How do I recursively search files with grep?

Use grep -r "keyword" /path/to/dir/. Add -n for line numbers, -i for case-insensitive search, -l to list only filenames.

What is the difference between chmod 755 and 644?

755 grants the owner read/write/execute and group/others read/execute — used for directories and executables. 644 grants the owner read/write and others read-only — used for config files and web assets.

How do I run a command in the background after closing the terminal?

Use nohup command > output.log 2>&1 & or start a tmux/screen session. The process continues running on the server after the terminal is closed.

How do I find recently modified files with find?

Use find . -mtime -1 -type f to find files modified in the last 24 hours. Use -mtime -7 for the last 7 days. Add -ls to show details.

Related Tools

✅ Copied!