0% found this document useful (0 votes)
4 views

1.4 Basic Commands and Operations of Terminal Kali Linux

This document provides a comprehensive guide to basic commands and operations in Kali Linux, including terminal usage, file management, and system information commands. It covers commands for checking user details, navigating directories, creating and managing files, as well as updating and upgrading packages. Additionally, it highlights the importance of case sensitivity in commands and the need for administrative privileges for certain operations.

Uploaded by

Ch Umer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

1.4 Basic Commands and Operations of Terminal Kali Linux

This document provides a comprehensive guide to basic commands and operations in Kali Linux, including terminal usage, file management, and system information commands. It covers commands for checking user details, navigating directories, creating and managing files, as well as updating and upgrading packages. Additionally, it highlights the importance of case sensitivity in commands and the need for administrative privileges for certain operations.

Uploaded by

Ch Umer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Basic Commands & Operations

Kali Linux
Open Terminal from Left Bar
It will open
Go to Edit -> Zoom in to increase the size
Use (Ctrl+Shitf+Plus) or (Ctrl+Plus) to increase size
File-> Preferences (You can check different colour schemes and font size)

For users
whoami (to check the username)
who (user name with date time of creation)
users (to check the users of system)

uname (to check the machine name)


uname -r (version details)
uname -r -a (complete details of user alongwith debain and linux)
pwd (displays working directory)
ls (to display the files/folders of home directory)
ls -r (displays alongwith files)
ls -a (displays all hidden files as well)
man ls (to check all the parameters, and command details like help)
ls -R (shows in different way, which means this is case sensitive)
cd desktop (change directory- to move on to any file/directory- no such file or directory available)
cd Dekstop (moves to file 'Desktop' - which shows that this is case sensitive)
lsblk (information of disk partition)
df (other information like avaialable size, used etc)
cal (calender-opens calender)
date (shows the current date/region)
wget www.youtube.com (to download a particular web page in html format, from where we can click and
move on)
Note: In linux, "directory" term is used in place of folder
mkdir (to create a new folder, if space then separate folders are generated, you can use space to separate
them)

Files commands (type/touch)


touch video.mp4 (to generate a file in mp4 format)
touch photo.png, touch web.html
type >"space" pic.jpg
echo Hello World! (prints on terminal)
echo Hello World! I am okay >"space" to.txt (write something on a file)
cat ./to.txt (To copy the text which exists in a file)
cp ./index.html /home/user/Desktop/ali (To copy a file index.html on different location)
cp to.txt "location" (other way to copy - DOS)
mv ./pic.jpg ./photo.png /home/user/desktop/ali (to cut or move files from one directory to the other)
mv ./video.mp4 ./cinematic.3gp (to rename the file)
rm ./cinematic.3gp ./web.html ./text.txt ./to.txt (to delete or remove multiple or single file)
rmdir /home/user/desktop/ali (not removed- directory not empty- First remove the files from given
directory)
cd ali/ (moves to a directory ali)
rm ./index.html ./photo.png ./pic.jpg ./to.txt (removes all files from default directory)
cd .. (to move to previous folder/step)
rmdir ali (to remove a folder from default location)

To download anything from server "apt -get"


Upgrade (To install new patches/security features)
Update (To update already installed packages/apps)
apt -get upgrade (it will not upgrade, only root user can do this-first we need to enable root user)
Note: Some commands are administrative. First require password by the user
ifconfig (not allowed command user)
sudo ifconfig (requires password for details- IP internet)
dig yahoo.com (displays servers of required webpage like yahoo and its IPs)
dig 192.52.178.30 (to display details of server related to an IP)

You might also like