Same commands#
cd
- change directory- In Windows also act as
pwd
date
- display or set datedir
- display contents in directoryecho
display some messagesexit
quit the terminal/command prompthelp
display informations of Windows/Linux commandsmkdir
create a directorymore
display outputs by screen viewrename
rename filesmv
in Linux does the same but more
rmdir
remove directory- only empty directories in Linux
shutdown
poweoff the machine- also able to restart in Linux
sort
sort some inputstree
display directory structure graphically- needs to be explicitly installed on most Linux distrubutions
Different commands but same functions#
- check disk status
chkdsk
in Windowsfsck
, hdparm
in Linux
- clear screen
- Ctrl + L should work in both Linux and Windows
cls
in Windowsclear
in Linux
- start a new shell/interpreter
cmd
in Windowsbash
, zsh
or any other shell
- compares contents of files
comp
or fc
in Windowsdiff
in Linux
- copy files
copy
in Windowscp
in Linux
- display and manage disk partitions
diskpart
in Windowsgdisk
, fdisk
, cgdisk
, cfdisk
in Linux
- delete files
del
or erase
in Windowsrm
in Linux
- search for string
find
or findstr
in Windowsgrep
in Linux
- display file type
ftype
in Windows, also can modifiy file extension associationsfile
in Linux
- move files
move
in Windowsmv
in Linux
- prints a text file
print
in Windowscat
does the same thing and more
- Display system/kernel version
ver
in Windowsuname -r
in Linux
- Display and set time
time
in Windowstimedatectl
in Linux(SystemD only)