System System Commands
Previous  Top  Next

Let's compare Windows NT/DOS command line commandos their Linux counterpart, most of them are only slightly different:

copy
cp
copy files
rename
mv
rename a file
move
mv
move a file
delete
rm
delete a file
deltree
rm -rf
remove an entire directory
md
mkdir
make a directory
rd
rmdir
remove a directory
dir/w
ls
list directory contents
dir
ls –l
"
dir.
ls –la
"
dir /s
ls –lR
"
hostname
hostname
show the machine's hostname
cd..
cd .. 
(yes, you need a space)

               
YOU HAVE SEVERAL DIFFERENT SHELLS AVAILABLE IN LINUX; YOU DON'T HAVE TO USE BASH. THERE IS ALSO THE C-SHELL (CSH), THE KORN SHELL (KSH) AND MANY MORE. MOST PEOPLE FIND THE BASH SHELL THE MOST USER FRIENDLY SINCE IT HAS THE MOST FEATURES AVAILABLE (ALIASING, HISTORY). YOU ARE FREE TO CONFIGURE YOUR USER ACCOUNT TO USE ANY INSTALLED SHELL BY EDITING THE /etc/passwd FILE. BUT – MAKE SURE THE SHELL SPECIFIED IN THE /etc/passwd FILE EXISTS; OTHERWISE YOU WILL NOT BE ABLE TO LOG IN.


And here some commands you won't find on Windows NT:

du
show directory usage (e.g. "du . –sk")
df
show free disk space (e.g. "df –k")


chgrp
change file group
chown
change file owner
chmod
change file permissions
id
current user


printenv
view all environment variables (they are very
important especially when installing and compiling)
who -imH
list logged on users
history
show all previously typed commands (bash)
!<command nr>
execute a command from the history (bash)
nice
modify priority of a process 
ps
show running processes (e.g. "ps –ef")
rpm
redhat package manager (RedHat only ...)
startx
start x-windows


tar
untar and unzip archives
gzip,gunzip
(un)compress files
sort
sort text files
grep
search for a pattern in a file or standard input,
Windows NT actually has a "find.exe" which does a 
similar thing but is less powerful unfortunately
find
find files

I will now take a closer look at some commandos and tricky important combinations (at least more important for beginners):