Linux Commands

Páginas: 4 (845 palabras) Publicado: 26 de noviembre de 2012
Some useful UNIX Commands written down by Razor
for newbies to get a start in UNIX
15th Jan. 2000 / 3:55 am

Part 1: Working with files and rights
-------------------------------------

cpmv

cd
pwd
mkdir
rm
rm -R
rm

--- Copies the source file to dest
--- Moves source to dest (if a directory,
else it renames source to dest)

---------

chmod userMODErights

df--- Changes the mode of a file
user=(u)ser
(current user)
(g)roup (group of current user)
(o)ther (all, except user&group)
(a)ll
(all :) )
MODE=(+) add rights
(-) remove rightsrights=(r)eadable
(w)ritable
e(x)ecutable
---

find / -name ""
DIR /S)
whereis
grep -l ""
given
cmp
diff
the difference
head
tail

--- Changes the current directory
Shows the currentdirectory
Creates a directory
--- Deletes a directory, if empty
Deletes a whole directory with subdirectories
(like DELTREE )
Deletes a file

Shows free disk space
-------

Searches the pathfor a file
Shows all files, which contain the

-----

-----

Searches the whole tree for a file (>

Compares with
Compares with and show

between them
Shows the first 10 lines of thefile
Shows the last 10 lines of the file

nl
sort
strings
file
wc

-----

Shows the lines of the file numbered
Shows the lines of the file in sorted order
--- Shows only the readablestrings of a

---

Shows lines, words, bytes of a file

file
--- Gives information about a file
touch -a -m -c -t MMDDhhmmCCYY
--- Changes the timestamp of a file
-a (Change Access-time)-m (Change Modification-time)
-c (Don't create files, that don't exist)
pico [file]
script
between this command

---

An easy to use ASCII-Editor.
--- Copies the text, that is entered
andthe "exit"-command in

lpr
lprm

-----

Prints a file
Removes file from Printing Queue

sudo
when

---

Executes file with SuperUser-Rights (Only
user is in SUID-List, else it...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Linux commands
  • Classroom commands
  • Bot Commands
  • Linux
  • Linux
  • Linux
  • Linux
  • Linux

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS