Top kali commands
Commands
👇👇👇 System relative commands
Whoami : It is use to find machine name. :
who : kali basic details
last : last login details
id : Show all id number in kali.
uname : It is use to find working current operating system name.
uaname -a : Getting all basic information of operating system.
user : It is use for find the login user.
init 0 : exit from kali
ctrl + C : Stop running process in kali.
Lsb -release -a : Show kali version.
top : Showing running programs in kali.
htop : Showing graphical running programs in kali.
kill (pid number) : Delete running programs in kali.
history : Show all commands use in terminal.
w : Show log file
ss :
who : kali basic details
last : last login details
id : Show all id number in kali.
uname : It is use to find working current operating system name.
uaname -a : Getting all basic information of operating system.
user : It is use for find the login user.
init 0 : exit from kali
ctrl + C : Stop running process in kali.
Lsb -release -a : Show kali version.
top : Showing running programs in kali.
htop : Showing graphical running programs in kali.
kill (pid number) : Delete running programs in kali.
history : Show all commands use in terminal.
w : Show log file
ss :
clear : clear the terminal
ps : cheek and handle process
lsblk : list disk and partition
chmod : change file permissions
lshw : get hardware details
shoutdown : turn of or rebot the system
User relative commands
How to create user: adduser "username" than enter and type password and hit enter.
how to see user : cat /etc/passwd
how to see user : getent passwd
how to see user : nano /etc/passwd
how to see password : nano /etc/sadow
how to change user password : passwd (type password enter)
how to delete user : user del "username"
how to change user details : usermod -c "hello" username
how to cheek password details : Sudo chage -l "username"
how to set user expiry date : sudo usermod -e 2022-12-6
how to convert old user in new user : sudo usermod -l "newuser" olduser
how to lock username : sudo usermod -L "username"
how to unlock username : sudo usermod -u "username"
how to change user password : sudo usermod -p "type password" username
how to convert bash sell to zsh sell: usermod -s /bin/zsh "username"
File relative commands
cd : Change directory we can go one directory to another directory.
ex-: cd desktop
pwd/finger : It is called (Print work directory) it is use find working active directory.
ls /dir : It is called(list) it is use to show file list in directory/folder.
ls -a -: Show hidden file list in directory.
mkdir : It is called(make directory) Make empty directory.
rmdir : Remove empty directory.
rm -r : Remove file and folder.
cp : copy file/folder one directory to another directory.
Touch (filename) : create empty file.
touch . (file name) : create hidden file.
mv : move file/folder one directory to another directory.
mv : Rename file/directory.
cat (filename) : Show file content on terminal.
echo (type text) > filename : rename words in file .
echo (type text) >> filename : add text in file.
!grep "filename" : finding files
nano "file name" : eadi file
internet relative commands
ifconfig : Show IP and mac address.
iwconfig : Show ethernet and wlan.
ip route list : Show all connected device ip in your router.
ip addr show : Show local and Eth0
ip link show :
ping (domain name) : Show connection website and your pc.
traceroute (domain name) : Show connection website and your pc.
host :
hostname : Showing network name.
arp : view add contents of the currnal arp table.
Memory relative commands
free -m : memory details.
cat /proc/meminfo : Show small stock memory
Vmstat -s : Advance level layout memory.
dmidecode : Ram cheek
Magical commands
figlet (enter words) : letter design.
yes : infinite text.
factor (inter number) : LCM
APT : Advance Pakeging toolkit
NAT : network address Transmition
Package install Commands
1. Sudo apt-get install sl
2. sudo apt-get install espeak
3. Sudo apt-get install cmatrix
4. sudo apt-get install xcowsay
5. sudo apt-get install screen fetch
6. sudo git clone (TBomb code link) start ./TBomb.sh
7. sudo apt-get install xeyes
Date and time
timedatctl: ( time zone )
timedatectl set -timezone time zone name :( set time zone)
( how to change mac address in kali linux)
1. sudo ifconfig eth0 down
2. sudo macchanger --r(regular) eth0
3. sudo ifconfig eth0 up
Comments
Post a Comment