Linux Commands and Useful Tips
<*> lsb_release -a
=> Show Ubuntu Os and release info
<*> sudo apt update
=> Update System
<*> sudo apt upgrade
=> Upgrade the System
<*> pwd
=> Shows your working directory
<*> touch myname.txt
=> Create file
<*> nano myname.txt
=> myname.txt file editing
after completing enter ctrl+x then save press Y
<*> Cat myname.txt
=> cat for show content of any file.
<*> shred file.txt
=> it destroy file contents
<*> mkdir mynewdirectory
=> Create folder
<*> mv newfile.awesome ./mynewdirectory/newfile.awesome
=> Move file source -> destination
<*> ls mynewdirectory/
=> check all folders and files inside. it shows newfile.awesome
=> remove file
<*> rm -r mynewdirectory
=> All directory and files are deleted.
<*> rmdir mynewdirectory
=> If directory has contains some files, then not possible to delete it.
<*> clear
=> clear the terminal
<*> whoami
=> shows the details
<*> sudo useradd nick
=> it's needs a password and sets
<*> sudo adduser rabia
=> it's add new user with some extra
<*> su rabia
=> switch user
<*> exit
=> exit commands used to exit in lot of places
<*> sudo passwd [username]
=> password set
<*> whereis [app]
=> shows it's location
<*> curl
=> network resource download
<*> zip, unzip
=> zip file
<*> cmp
=> compare files
<*> diff
=> different location track
<*> chmod
<*> chown
<*> ifconfig
<*> sudo apt install net-tools
<*> grep
<*> awk
<*> resolvectl status
<*> ping
<*> traceroute
<*> netstat
<*> netstat -tulpn
<*> ss -tulpn
<*> ufw
<*> uname -a
<*> neofetch
<*> cal
<*> free
<*> df -H
<*> ps
<*> ps -aux
<*> htop
<*> kill -9 processid
<*> pkill
<*> systemctl
<*> history
<*> sudo shutdown -h now
------------------------------------------------------------------------------------------------------------------
<*> ranger => For show file
<*> trash-list
<*> trash-empty
<*> pfetch => shows os & memory data
<*> neofetch => shows os & memory data
<*> htop => process status
<*> ncdu => storage scan
<*> hollywood => terminal animation
<*> sneakers => animation type
Comments
Post a Comment