Creation and update systems are omitted. This is a collection of linux status check commands that I sometimes forget when using them because I am not a specialist.
Check os
uname
uname -a #Show other details such as kernel, release date
Check full path
readlink -f file name
Check the contents of the tar file (without unpacking)
tar -tf file name
Check the contents of the zip file (without unzipping)
zipinfo filename
Check the currently logged in user
users
Check the group you belong to
groups
Check the set cron
crontab -e
Check global IP
curl ifconfig.me
Ping monitoring
ping ip address
Process confirmation
ps aux
Difference confirmation
#Side by side comparison
diff -y file A file B
#Display only file names with differences in the directory
diff -rq directory A directory B
Recommended Posts