|
System System Commands
|
Previous Top Next |
|
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.
|
|
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
|