Kali Linux Terminal Commands

Software Package Maintenance

# apt-get update
# apt-get upgrade
# apt-get install <software package name>

Run “apt-get update” and “apt-get upgrade” to update installed software packages.
To install a new software package, run “apt-get install <software package name>”.

Apt sources list is /etc/apt/sources.list and must contain:

deb http://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main contrib non-free

Information Display

# uname -a

Display operating system version.

# lsblk

List block devices like hard drives and usb drives.

Figure 2 lsblk command showing device sda and sdb (drives a and b)

Leave a comment

Your email address will not be published. Required fields are marked *