Commands in windows and Linux
1. Command to get Ip address, hostname, Mac address.
Windows: ipconfig Linux: ifconfig
2. Command that is used to discover the IP address or DNS record of a specific domain name.
Windows: nslookup Linux: nslookup
3. Command to get details of files, dates, storage.
Windows: DIR Linux: ls –l
4. Command to check history of commands
Windows: doskey /history Linux: history
5. Command to copy a file
Windows: copy Linux: cp
6. command to create new directory/folder
Windows : md Linux: mkdir
7. command to delete /remove a file
Windows: del Linux: rm
8. command to list directory/folder
Windows: dir Linux: ls
9. Command to print contents of a file
Windows: type
Linux: cat
10. Command to list the directory recursively
Windows: tree Linux: tree
11. Command to show the list of running task
Windows: tasklist Linux: ps x
12. Command to get the current time
Windows: time Linux: date
13. Command to check the disk space
Windows: Wmic diskdrive get size Linux: df -h
14. Command to know the login user (current user)
Windows: whoami Linux: whoami
15. Command to show the basic name of operating system &version
Windows: ver Linux: uname
16. Command to check the network connectivity between HOST & SERVER HOST
Windows: PING Linux: Ping
17. Command to print the route packets trace to network host
Windows: tracert Linux: traceroute
18. Command to list the current task
Windows: tasklist Linux: top
19. Command to show the active network connections
Windows: netstat Linux: netstat
20 . Command to navigate up one directory or previous directory
Windows: cd Linux: cd
21. Command to Hide and Unhide files.
Windows: attrib Linux: mv
22. Command to Displays information about system memory and resources
Windows: systeminfo Linux: free
23. Command to Displays information about kernel modules
Windows: driverquery Linux: lsmod
24. Command to Displays information about CPU
Windows: wmic cpu get Linux: lscpu
25. Command to Displays USB device information
Windows: devmgmt.msc Linux: lsusb
26. Command to Displays PCI device information
Windows: devmgmt.msc Linux: lspci
27. Command to Lists directory recursively
Windows: tree Linux: ls –R
28. Command to remotely access and manage a system
Windows: ssh Linux: ssh
29. Command to Displays the contents of a file
Windows: type Linux: cat
30. Command to Displays the first few lines of a file
Windows: more Linux: head
31. Command to restart the system
Windows: shutdown –r Linux: reboot