Linux Commands for Cloud and DevOps Engineers

Basic navigation:

# List files and directories
ls

# Change directory
cd

# Print the current working directory
pwd

# Create a directory
mkdir

# Remove a directory
rmdir

# Copy files
cp

# Move or rename files
mv

# Find files based on…


This content originally appeared on DEV Community and was authored by Amal Kuriakose

Basic navigation:

# List files and directories
ls

# Change directory
cd

# Print the current working directory
pwd

# Create a directory
mkdir

# Remove a directory
rmdir

# Copy files
cp

# Move or rename files
mv

# Find files based on criteria
find

File management:

# Remove files
rm

# Create file
touch

# Open a file
vi

# View content of a file
cat

# View large text files in the command prompt
more

# Display the first few lines of a file
head

# Display the last few lines of a file
tail

# Live monitoring if a file
tail -f

# Change file permissions
chmod

# Change file ownership
chown

System monitoring and management:

# Display process information
ps

# Show running processes
top

# Display disk space usage
df

# Display disk space usage for files
du

# Display memory usage
free

# find out how long the system is active (running)
uptime

# Terminate a process
kill

Networking:

# Configure network interfaces
ifconfig

# Test network connectivity
ping

# Display network statistics
netstat

# Trace the route to a host
traceroute

# Data transfer to or from a server
curl

# Retrieve files from the internet or server
wget

Text processing:

# Search for text patterns within files
grep

# Pattern scanning and processing language
awk

# Stream editor for text manipulation
sed

# Filters out the repeated lines in a file
uniq

# Word count
wc

File compression:

# Create, extract, or list archive files
tar

# Compress or decompress files
gzip

User management:

# Display the users currently logged in
who

# Display the username of the user who is currently logged in
whoami

# Add user
useradd

# Set password
passwd

# Switch user
su

# Delete user
userdel

System information:

# Details about your Linux system
uname

# Obtain the system hostname
hostname

# CPU information
lscpu
cat /proc/cpuinfo

# Disk info
lsblk

Disk management:

# view, create, delete, change, resize, copy and move partitions
fdisk

# make a file system on a formatted storage device
mkfs

Miscellaneous:

# Package management
yum
apt

# Get date
date

# Clear screen
clear

# Access documentation of a command
man


This content originally appeared on DEV Community and was authored by Amal Kuriakose


Print Share Comment Cite Upload Translate Updates
APA

Amal Kuriakose | Sciencx (2024-08-21T07:21:39+00:00) Linux Commands for Cloud and DevOps Engineers. Retrieved from https://www.scien.cx/2024/08/21/linux-commands-for-cloud-and-devops-engineers/

MLA
" » Linux Commands for Cloud and DevOps Engineers." Amal Kuriakose | Sciencx - Wednesday August 21, 2024, https://www.scien.cx/2024/08/21/linux-commands-for-cloud-and-devops-engineers/
HARVARD
Amal Kuriakose | Sciencx Wednesday August 21, 2024 » Linux Commands for Cloud and DevOps Engineers., viewed ,<https://www.scien.cx/2024/08/21/linux-commands-for-cloud-and-devops-engineers/>
VANCOUVER
Amal Kuriakose | Sciencx - » Linux Commands for Cloud and DevOps Engineers. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/21/linux-commands-for-cloud-and-devops-engineers/
CHICAGO
" » Linux Commands for Cloud and DevOps Engineers." Amal Kuriakose | Sciencx - Accessed . https://www.scien.cx/2024/08/21/linux-commands-for-cloud-and-devops-engineers/
IEEE
" » Linux Commands for Cloud and DevOps Engineers." Amal Kuriakose | Sciencx [Online]. Available: https://www.scien.cx/2024/08/21/linux-commands-for-cloud-and-devops-engineers/. [Accessed: ]
rf:citation
» Linux Commands for Cloud and DevOps Engineers | Amal Kuriakose | Sciencx | https://www.scien.cx/2024/08/21/linux-commands-for-cloud-and-devops-engineers/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.