Linux_Commands_Developer
Linux_Commands_Developer
details.
directory.
mkdir - Creates a new directory. Example: mkdir project creates a folder named
'project'.
directories.
file2.txt.
old.txt to new.txt.
touch - Creates an empty file. Example: touch file.txt creates a blank 'file.txt'.
find - Searches files and directories. Example: find / -name file.txt looks for 'file.txt'.
locate - Finds files quickly using an indexed database. Example: locate file.txt.
Text Processing
cat - Displays file contents. Example: cat file.txt shows the content of 'file.txt'.
grep - Searches for patterns in files. Example: grep 'error' log.txt finds 'error' in
log.txt.
awk - Processes and analyzes text data. Example: awk '{print $1}' file.txt prints the
first column.
Networking
curl - Fetches data from URLs. Example: curl http://example.com downloads the
page content.
scp - Securely copies files between servers. Example: scp file.txt user@host:/path
transfers file.txt.
ftp - Transfers files using the FTP protocol. Example: ftp hostname.
Process Management
with details.
kill - Terminates a process by its PID. Example: kill 1234 kills the process with
PID 1234.
killall - Kills processes by name. Example: killall firefox ends all Firefox processes.
git add - Stages changes for commit. Example: git add file.txt.
git push - Pushes changes to a remote repository. Example: git push origin main.
usage.
du - Shows directory size. Example: du -sh /home gives the size of /home.
usage.
tar - Archives files. Example: tar -cvf archive.tar file.txt creates an archive.
Package Management
install git.
git.
dnf - A newer package manager for RHEL-based systems. Example: dnf install
git.
Development Utilities
gcc - Compiles C/C++ code. Example: gcc main.c -o main compiles 'main.c'.
make - Builds projects using Makefiles. Example: make all builds all targets.
vim - Edits text files in the terminal. Example: vim file.txt opens 'file.txt' for editing.
nano - A simple text editor. Example: nano file.txt opens 'file.txt' for editing.