Linux vs DOS Commands
The most commonly used Linux commands (RedHat7)
Posted 20.12.2001 | Updated 23.05.2006 | Contributed by Andy Mallett


DOS Comparison Many Unix commands have their DOS equivalents and some are interchangeable.

DOS
cd
dir
chdir
move
copy
del
deltree
ren
edit
type
Linux
cd
ls
pwd
mv
cp
rm
rm -r
mv
vi
less or more
Function
Change Directory
List directory contents
Show full location in directory tree
Move files
Copy files
Remove [delete]
Delete directory and contained files
Rename files
Edit with simple file editor
View files on screen

User Management and Permissions..

Command
su
adduser
passwd
chmod
chown
Function
Login as another user
Add a user [root only]
Change a user's password
Change file/folder permissions
hange file/folder ownership
Basic Syntax
su -[user]
adduser [account name]
passwd [account]
chmod [permissions][target]
chown [user]:[group][target]

Managing Processes..

Command
ps
ps aux
top
kill [process id]
kill -9 [process id]
Function
Display running processes
As above with more info
Auto refresh list of running processes
Kill a process of specified id
Kill a stubborn process

Installing Software..

Command
rpm -ivh [package name]
rpm -uvh [package name]
rpm -e [installed package]
rpm -q [package]
rpm -q --requires [package name]
rpm -qip [package]
rpm -qix [package]
rpm -qixp [package name]
rpm -v [package]
Function
Install a new package
Upgrade a package
Uninstall a package
Query if package is installed
Query a package's dependencies
List all files stored within a package
Read a description of an installed package
Read description of an uninstalled package
Verify an installed package

Common Tasks..

Command
locate
ln
xhost
du
df

tar
reboot
shutdown

Function
Locate a specific file
Create link to another file/directory
Add/remove X access to your display
Show disk usage of file or directory
Show free diskspace on mounted
filesystems
Extract contents of .tar.gz files
Reboots the machine
Shuts down machine
Basic Syntax
Locate [filename]
ln -s [target][link name]
xhost +[host name]
du [directory]
df

tar -zxvf [filename.tar.gz]
reboot
shutdown [options][time]