NIAIS Assignment No#1 Lecture Date: 7th September 2023 ─ Student Name: Muhammad Suleman Instructor Name: Abdul Rehman Content 1. 20 Basic commands of Linux Terminal and Windows 10 CMD 2. Command to delete a directory containing files using the Linux Terminal and Windows CMD 1 Index 1. 2. 3. 4. Basic Commands of Linux Terminal ………………………………………………………………….. Pg#2 Basic Commands of Windows CMD ………………………………………………………………… Pg#14 How to delete a directory containing files with Windows CMD………………………. Pg #26 How to delete a directory containing files in Linux …………………………………………..Pg#28 2 Basic Linux Commands (Debian) ls: ls command is used to list the files in the current directory 3 clear: clear command is used to clear the screen pwd: pwd command is used to print the present directory in the terminal 4 cd: cd command is used to change directory touch: touch command is used to create an empty file 5 rm: rm command is used to delete a file sudo: sudo command is used to execute any task with superuser privileges 6 apt: apt command is used to upgrade, update or install new packages in Debian based linux distros mkdir: mkdir command is used to create a new directory 7 rmdir: rmdir command is used an empty directory top: top command is used to list the ongoing running processes 8 nano: nano is a CLI based text editor used to edit text files in the linux terminal, nano filename.txt command would open the text file in the terminal 9 cat: cat command is used to display the contents of a file in the Terminal history: history command is used to show the history of commands ran in the terminal previously 10 head: head command is used to view the first ten lines of a file by default tail: tail command is used to view the last ten lines of a file by default 11 whoami: whoami command is used to display the username of the current user 12 man: man command is used to display the user manual of any command that we can run on the terminal 13 ifconfig: ifconfig command is used to display current network interface configuration cd ..: cd .. command is used to change our directory to our previous directory 14 Basic Windows CMD commands cd: cd command is used to change directory 15 dir: dir command is used to list the files in the current directory cls: cls command is used to clear the screen 16 ping: ping command tests network connectivity to a specific server or website 17 systeminfo: systeminfo displays detailed information about computer’s hardware and software 18 tasklist: lists all running processes and applications help: provides information about other commands 19 echo: displays text on the screen ipconfig: shows network related information including IP address and network settings 20 mkdir: creates a new directory rmdir: deletes the specified directory 21 del: del command delete the specified file diskpart: diskpart is used to manage partitions on a disk 22 netstat: netstat displays network connections and listening ports chkdsk: checks the disk for errors and repairs them 23 getmac: displays the mac address information whoami: displays the users currently logged in 24 ver: displays the current windows version tracert: traces the route to a computer or network device 25 dirverquery: displays a list of drivers installed on the system 26 How to delete a directory Containing files with Windows CMD rmdir s/ q/ Suleman: s/ is used to delete the directories and sub directories within it q/ is used so the action can be executed without asking for confirmation 27 How to delete a directory Containing files in Linux rm -rf kali: used to delete a whole directory containing files