This document provides commands for network configuration and troubleshooting, user and group management, file compression and archiving, file permissions, and storage usage checks in Linux. Some key commands include ipconfig/displaydns and netstat for network information, tar and zip for archiving files with optional compression, useradd/usermod/userdel for adding/modifying/deleting users, chown/chgrp/chmod for changing file ownership and permissions.
This document provides commands for network configuration and troubleshooting, user and group management, file compression and archiving, file permissions, and storage usage checks in Linux. Some key commands include ipconfig/displaydns and netstat for network information, tar and zip for archiving files with optional compression, useradd/usermod/userdel for adding/modifying/deleting users, chown/chgrp/chmod for changing file ownership and permissions.
This document provides commands for network configuration and troubleshooting, user and group management, file compression and archiving, file permissions, and storage usage checks in Linux. Some key commands include ipconfig/displaydns and netstat for network information, tar and zip for archiving files with optional compression, useradd/usermod/userdel for adding/modifying/deleting users, chown/chgrp/chmod for changing file ownership and permissions.
tar -czf filename.tar.gz ~/dacuments (compress) tar -czvf filename.tar.gz ~/dacuments
zip -r filename.zip ~/dacuments
unzip filename.zip rm *filename.txt del all files txt rm filename?.txt del douplicate files useradd usama useradd -m abdullah useradd -m -s "/bin/bash" abdullah useradd -c "Abdullah bin zia" -m -s "/bin/bash" abdullah -c = comment + shell permission to user usermod -a -G sudo usamamuneer root permission to user passwd abdullah userdel abdullah usermod -L abdullah lock account usermod -U abdullah unlock account su abdullah sudo usermod -L abdullah cat etc/var/auth.log info= /etc/gshadow conatin group user passwords groupadd Muslims create group usermod -G Muslims abdullah adding a user in a group gpasswd -d abdullah Muslims deleting user in a group groupdel Muslims deleting group chown usamamuneer filename chgrp Muslims filename chmod u+x filename user permission chmod O+x filename everyone get permission chmod g+x filename group permission ifconfig | grep inet ip addr show df -h df -th file system check du