Essential Linux file management commands for DevOps Engineer
As a devops engineer some time you may require to manage your Linux systems. You may require to create, manage, locate some files or directory in your Linux System. Here are some Linux file management commands given as follows.
| Command | Example | Explanation |
|---|---|---|
ls |
ls or ls /path/to/directory |
List files and directories in the current directory or a specified path. |
ls -l |
ls -l |
List files and directories in long format, showing details like permissions, owner, size, and modification time. |
ls -a |
ls -a |
List all files and directories, including hidden ones (those starting with a dot). |
pwd |
pwd |
Print the current working directory. |
cd |
cd /path/to/directory |
Change the current directory to the specified path. |
touch |
touch filename.txt |
Create an empty file with the specified filename. |
mkdir |
mkdir directoryname |
Create a new directory with the specified name. |
rmdir |
rmdir directoryname |
Remove an empty directory with the specified name. |
rm |
rm filename.txt |
Remove (delete) a file. Use with caution; it’s irreversible. |
rm -r |
rm -r directoryname |
Remove a directory and its contents recursively. Use with caution. |
cp |
cp file.txt /path/to/destination |
Copy a file to a specified destination. |
cp -r |
cp -r directory /path/to/destination |
Copy a directory and its contents recursively to a specified destination. |
mv |
mv file.txt newfilename.txt |
Move (rename) a file or directory to a new name/location. |
ln |
ln -s sourcefile linkfile |
Create a symbolic (soft) link to a file or directory. |
find |
find /path/to/search -name "file.txt" |
Search for files or directories within a specified path based on various criteria. |
grep |
grep "pattern" file.txt |
Search for a specific text pattern in a file. |
chmod |
chmod permissions filename |
Change file permissions (read, write, execute) for a file. |
chown |
chown user:group filename |
Change the owner and group of a file or directory. |
df |
df -h |
Display disk space usage in a human-readable format. |
du |
du -h directoryname |
Show disk usage of files and directories in a human-readable format. |
tar |
tar -cvzf archive.tar.gz directoryname |
Create a compressed tar archive of a directory. |
tar |
tar -xvzf archive.tar.gz |
Extract files from a compressed tar archive. |
zip |
zip -r archive.zip directoryname |
Create a zip archive of a directory. |
unzip |
unzip archive.zip |
Extract files from a zip archive. |
cat |
cat file.txt |
Display the content of a text file. |
more or less |
more file.txt or less file.txt |
View the content of a file page by page. |
head and tail |
head -n 10 file.txt or tail -n 10 file.txt |
Display the first or last N lines of a file, respectively. |
mv |
mv oldfile.txt newfile.txt |
Rename a file. |
wc |
wc -l file.txt |
Count the number of lines in a file. |
sort and uniq |
sort file.txt or `sort file.txt |
uniq` |
touch |
touch -t 202301011200 file.txt |
Change the timestamp of a file to a specific date and time. |
If you are interested to become a Certified Linux Administrator the best way is to prepare for RedHat System Administration certification (RHCSA) with AEM Kolkata. AEM provides RHCSA Training in Kolkata Since 2004.


Cybersecurity Architect | Cloud-Native Defense | AI/ML Security | DevSecOps
๐๐ข๐ญ๐ก ๐๐+ ๐ฒ๐๐๐ซ๐ฌ ๐จ๐ ๐๐ฑ๐ฉ๐๐ซ๐ญ๐ข๐ฌ๐ ๐ข๐ง ๐๐ฒ๐๐๐ซ๐ฌ๐๐๐ฎ๐ซ๐ข๐ญ๐ฒ ๐๐ง๐ ๐๐ฅ๐จ๐ฎ๐-๐ง๐๐ญ๐ข๐ฏ๐ ๐๐๐๐๐ง๐ฌ๐, ๐ ๐๐ซ๐๐ก๐ข๐ญ๐๐๐ญ ๐ซ๐๐ฌ๐ข๐ฅ๐ข๐๐ง๐ญ ๐๐ข๐ ๐ข๐ญ๐๐ฅ ๐๐๐จ๐ฌ๐ฒ๐ฌ๐ญ๐๐ฆ๐ฌ ๐๐ฒ ๐ข๐ง๐ญ๐๐ ๐ซ๐๐ญ๐ข๐ง๐ ๐๐๐ซ๐จ ๐๐ซ๐ฎ๐ฌ๐ญ, ๐ญ๐ก๐ซ๐๐๐ญ ๐ข๐ง๐ญ๐๐ฅ๐ฅ๐ข๐ ๐๐ง๐๐, ๐๐ง๐ ๐ฉ๐ซ๐จ๐๐๐ญ๐ข๐ฏ๐ ๐ซ๐ข๐ฌ๐ค ๐ฆ๐ข๐ญ๐ข๐ ๐๐ญ๐ข๐จ๐ง ๐ข๐ง๐ญ๐จ ๐๐ฏ๐๐ซ๐ฒ ๐ฅ๐๐ฒ๐๐ซ ๐จ๐ ๐ข๐ง๐๐ซ๐๐ฌ๐ญ๐ซ๐ฎ๐๐ญ๐ฎ๐ซ๐.
My journey began in network security (firewalls, IDS/IPS) and evolved through Linux/Windows hardening, IAM, and DevSecOpsโbridging security with agile development. Today, I specialize in securing multi-cloud (AWS/Azure/GCP) environments.
๐๐ฌ ๐ ๐ญ๐ซ๐ฎ๐ฌ๐ญ๐๐ ๐๐๐ฏ๐ข๐ฌ๐จ๐ซ, ๐ ๐ก๐๐ฅ๐ฉ ๐จ๐ซ๐ ๐๐ง๐ข๐ณ๐๐ญ๐ข๐จ๐ง๐ฌ:
โ๏ธ Align security investments with business objectives (reducing TCO while maximizing cyber ROI).
โ๏ธ Prioritize risks executives care aboutโtranslating technical vulnerabilities into financial/operational impact.
โ๏ธ Optimize team workflows by merging DevSecOps agility with governance rigorโno more “security vs. speed” trade-offs.
๐๐จ๐ซ๐ ๐๐ญ๐ซ๐๐ง๐ ๐ญ๐ก๐ฌ & ๐๐ข๐๐๐๐ซ๐๐ง๐ญ๐ข๐๐ญ๐ข๐จ๐ง:
๐๐ฏ๐ฅ-๐ต๐ฐ-๐ฆ๐ฏ๐ฅ ๐ด๐ฆ๐ค๐ถ๐ณ๐ช๐ต๐บ ๐ข๐ณ๐ค๐ฉ๐ช๐ต๐ฆ๐ค๐ต๐ถ๐ณ๐ฆโ๐ง๐ณ๐ฐ๐ฎ ๐ฏ๐ฆ๐ต๐ธ๐ฐ๐ณ๐ฌ ๐ฉ๐ข๐ณ๐ฅ๐ฆ๐ฏ๐ช๐ฏ๐จ ๐ต๐ฐ ๐๐-๐ฅ๐ณ๐ช๐ท๐ฆ๐ฏ ๐ต๐ฉ๐ณ๐ฆ๐ข๐ต ๐ฅ๐ฆ๐ต๐ฆ๐ค๐ต๐ช๐ฐ๐ฏ.
๐๐ฎ๐ฅ๐ญ๐ข-๐๐ฅ๐จ๐ฎ๐ ๐๐๐๐ฎ๐ซ๐ข๐ญ๐ฒ: Deep expertise in AWS/Azure/GCP security tools (Kubernetes, CSPM, CWPP).
๐๐ก๐ซ๐๐๐ญ ๐๐ง๐ญ๐๐ฅ๐ฅ๐ข๐ ๐๐ง๐๐ & ๐ ๐จ๐ซ๐๐ง๐ฌ๐ข๐๐ฌ: Proactive hunting, incident response, and post-breach analysis.
๐๐๐ซ๐จ ๐๐ซ๐ฎ๐ฌ๐ญ & ๐๐๐: Architecting least-privilege access, PKI, and micro-segmentation.
๐๐/๐๐ ๐๐๐๐ฎ๐ซ๐ข๐ญ๐ฒ: Securing LLMs, MLOps pipelines, and data lakes against adversarial attacks.
๐๐๐๐๐ง๐ญ ๐๐จ๐ง๐ฌ๐ฎ๐ฅ๐ญ๐ข๐ง๐ ๐๐ซ๐จ๐ฃ๐๐๐ญ๐ฌ โ ๐๐ ๐๐ง๐ญ๐ข๐ ๐๐ & ๐๐ ๐๐๐๐ฎ๐ซ๐ข๐ญ๐ฒ:
โ๏ธ Led security architecture for a GenAIโpowered Agentic AI system (autonomous taskโplanning agents using LangChain & AutoGPT). Designed guardrails against prompt injection, toolโcalling abuse, and data exfiltration via agentโtoโagent communication. Result: Zero security breaches across 10k+ agentic transactions.
โ๏ธ Advised a fintech firm on AI supply chain security โ hardened their LLM fineโtuning pipeline (Hugging Face + AWS SageMaker) against model poisoning and backdoor attacks. Implemented realโtime anomaly detection for model inputs using statistical outlier scoring.
Letโs connect and discuss the future of secure, intelligent infrastructure.
