task 2 report
task 2 report
SEM :- 3rd
USN:- 1ST23CY009
SUBJECT:- TASK 2
50 commands in kali
1.ls
The ls command is used to list files and directories in the current working directory.
2.pwd
The pwd command allows you to print the current working directory on your terminal.
3.cd
While working within the terminal, moving around within directories is pretty much a
necessity.
4. mkdir
The mkdir command allows you to create directories from within the terminal.
5.cp
The cp command is equivalent to the copy-paste command in Windows.
6.mv
The mv command is equivalent to the cut-paste commands in Windows.
7.rm
8.touch
The touch command in Linux creates an empty file or updates the timestamp of an
existing file
9.ln
To create a link to another file, we use the ln command.
10.clear
The clear command in Linux clears the terminal screen. It removes all the text and
output currently displayed on the terminal and gives you a clean slate to work with.
11.cat
When you want to output the contents of a file to the terminal output, we use the cat.
12.echo
When you want to print anything to the terminal output, we use the echo.
13.less
The less command allows the user to break down the output and scroll through it with
the use of the enter or space keys.
14.man
The man command in Linux is used to display the manual page for a specific command.
It provides detailed information about the command, including its syntax, options, and
examples.
15.uname
The uname command in Linux displays information about the system’s kernel,
including the kernel name, hostname, kernel release, kernel version, and machine
hardware name.
16.whoami
The whoami command in Linux returns the current user’s username. It stands for “who
am I?” and it’s often used to determine the current user’s identity in shell scripts or the
terminal.
17.tar
The tar command in Linux is used to create and extract archived files. We can extract
multiple different archive files using the tar command.
18.grep
The grep command is a powerful and versatile text search tool in Linux and Unix-based
operating systems. It can search for specific patterns or strings in one or more files and
filter the output of other commands.
19.head
When outputting large files, the head command come in handy. This command display
the beginning of a file.
20.tail
When outputting large files, tail command come in handy. This command display the
end of a file.
21.diff
This command can be used to identify differences between two files and perform other
file comparison tasks.
22.cmp
The cmp command is used to compare two files and display the first byte that is
different between them. It can be used to identify differences between binary files or to
check for corruption in files.
23.comm
The comm command is used to compare two sorted files and display the lines that are
unique to each file, as well as the lines that are common to both files.
24.sort
The sort command is used to sort lines in a text file or standard input in Linux and
Unix-based operating systems. It can be used to sort lines in ascending or descending
order and to perform other sorting operations, such as sorting by fields or using a
custom sorting order.
25.export
The export command in Linux and Unix-based operating systems is used to set
environment variables.
26.zip
This command is used to compress a file and reduce its size making them easier to store
or transport.
27.unzip
This commands is used to extract the contents of the zipped file into a readable format.
28.ssh
The ssh command in Linux and Unix-based operating systems establishes a secure shell
connection to a remote server. The command provides a secure encrypted connection
between the local and remote servers, allowing users to run commands and transfer files
securely.
29.service
The service command is used to start, stop, restart, and check the status of these
services.
30.ps
The ps command is used to display information about the current running processes.
31.kill and unkill
These commands are used to terminate the processes ,but they differ in the level of
control they provide.
32.df
The df command is used to display the amount of disk space used and available on the
file systems
33.mount
The mount command is used to mount a file system or device to a specific directory.
34.chmod
The chmod command is used to change the permissions of a file or directory.
35.chown
The chown command is used to change the ownership of a file or directory.
36.ifconfig
The ifconfig command will give you the list of all the network interfaces along with the
IP addresses, MAC addresses and other information about the interface.
37.traceroute
The traceroute command is used to trace the route of network packets and determine
the path they take to reach a specific destination.
38.wget
When you specify the link for download, it has to directly be a link to the file. If the file
cannot be accessed by the wget command.
39.ufw
UFW and IPTables are firewall interfaces for the Linux Kernel’s netfilter firewall.
40.iptables
IPTables directly passes firewall rules to Netfilter while UFW configures the rules in
IPTables, which then sends those rules to Netfilter.
41.apt,pacman,yum,rpm
These are linux package managers that allow users to install,update,remove and
manage software packages.
42.sudo
Allows users to perform tasks with administrative privileges such as installing
software,modifying system files,and changing file permissions.
43.cal
The cal command displays a well-presented calendar on the terminal.
44.alias
This is used to create a shortcut for a command,file name or shell text.
45.dd
The dd command in Linux is a versatile command used for low-level copying and
conversion of data.
46.wheris
The whereis command locates the binary, source, and manual pages for a specific
command or program.
47.whatis
The whatis command displays a short description of a command or program.
48.top
The top command in Linux is a system monitoring tool that displays real-time
information about system processes and resource usage. It provides a dynamic, real-
time view of system activity, including CPU usage, memory usage, and process
information.
49.useradd
The useradd or adduser commands are the exact same commands where adduser is just
a symbolic link to the useradd command. This command allows us to create a new user
in Linux.
50.passwd
The passwd command lets you set the password for your own account, or if you have the
permissions, set the password for other accounts.