Linux_Commands_Developer_Data_Engineer
Linux_Commands_Developer_Data_Engineer
details.
directory.
mkdir - Creates a new directory. Example: mkdir project creates a folder named
'project'.
directories.
file2.txt.
old.txt to new.txt.
find - Searches files and directories. Example: find / -name file.txt looks for 'file.txt'.
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.
sed - Performs text substitution and manipulation. Example: sed 's/old/new/g'
cut - Extracts specific columns from files. Example: cut -d',' -f2 file.csv extracts the
second column.
sort - Sorts file contents. Example: sort file.txt sorts lines alphabetically.
uniq - Removes duplicate lines. Example: uniq file.txt outputs unique lines.
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.
hdfs dfs - Manages Hadoop Distributed File System (HDFS). Example: hdfs dfs -ls /
application.
sqoop - Transfers data between Hadoop and relational databases.
kafka-console-producer
- Publishes messages to a Kafka topic.
kafka-console-consumer
- Reads messages from a Kafka topic.
Process Management
with details.
kill - Terminates a process by its PID. Example: kill 1234 kills the process with
PID 1234.
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.
Development Utilities
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.