# linux-commands
linux commands to perform operations
- check internet connecton in centos by below command :
nmcli d
- connect internet in centos :
nmtui
- get default target which is selected Graphical/Command line :
systemctl get-default
- set default target graphical :
systemctl set-default graphical.target
- install GUI in centos :
yum -y group install "GNOME Desktop" "Graphical Administrative Tools"
- Zip a directory or file :
zip -r [new file name] [directory or file name which is to zip]
- unzip a file :
unzip [file_name]
- install screen recorder in linux :
sudo yum install recordmydesktop
-
start recording :
recordmydesktop
-
install graphics for recordmydesktop :
yum install gtk-recordmydesktop
- Use the usermod command to add the user to the wheel group(Make sudo user).
usermod -aG wheel username
- Check Nginx Status.
nginx -t
-
Check Disk Space
df -h
-
Un-mount all the devices permanantly
sudo nano /etc/fuse.conf // and uncomment the user_allow_other