Tuesday, July 13, 2010

Whats The Name Of Thein Fakku

linux OSI MODEL


Chmod Command This command is used to modify file permissions. There are two ways to use it: ->
see popup copy to clipboard Print
chmod 777 chmod 777 myfile myfile
->
Or this: ->
see popup copy to clipboard Print
chmod g + x myfile chmod g + x myfile
->
In the first case we add permissions octal form, while in the second we use the notation with lyrics. In the example we add the permission to run the group owning the file. We may use + or-to other users, g +, g-to add or remove permissions on the group, and u +, u-for the user's permissions owner, followed by the letter r (read), w (write) ox (execute). Chown Command

this command to change the owner of a file and can be used as follows ->
see popup Copy to clipboard print
chown-R nuevopropietario / chown-R PathToFile nuevopropietario / PathToFile
->

chgrp chgrp command changes the group owner of the file or directory. ->
see popup copy to clipboard Print
chgrp newGroup / chgrp PathToFile newGroup / PathToFile
-> Command Du

Displays disk usage of each file and directory (including subdirectories .) ->
see popup copy to clipboard Print du du

->
If you want to view only the total size of all files and directories in a folder you can use this command: ->
see popup copy to clipboard Print
du - ch-ch du grep grep total total
->

Grep Command This command is indispensable. Used to search for text strings within a file or within another string. For example these three statements will return the number of directories that exist in the current directory. (Ls is to list all files and directories and wc-l to count the number of lines ->
see popup copy to clipboard Print
ls-l grep d wc-l ^ ls-l grep d wc-l ^
->
In this example we can see the number of times the root user is connected. For example if you open different operating system shells at a time. (Who returns a string with all users connected) -> popup
see copy to clipboard Print Who
wc-l grep root root Who wc-l grep
->
command grep supports regular expressions is what makes it really powerful, even if regular expressions are added things get complicated. Suppose you have a file called test_file with the following data: ->
see popup copy to clipboard
print dir file 15kb 27kb
27/07/2007 26/07/2007 26/07/2007
dualco 1kb 15kb dir 27kb file
27/07/2007 26/07/2007 26/07/2007
dualco 1kb
->
And we just want to show us the lines that start with the letter d. This would be the solution to the grep command using regular expressions. ->
see popup copy to clipboard Print
grep \\ '^ [d] \\' test_file grep \\ '^ [d] \\' test_file
->
Comando Head
Devuelve las primeras líneas de un texto dado. Este ejemplo devolvería las primeras 10 líneas del archivo. -->
ver en popup copiar a portapapeles imprimir
head -n 10 archivo.c head -n 10 archivo.c
-->
Comando Kill
Este comando es muy útil para detener un proceso. Normalmente se utiliza el comando ps para buscar el PID (Process id o número identificador de proceso) y luego kill para 'matarlo' -->
ver en popup copiar a portapapeles imprimir
kill 174541 kill 174541
-->
Donde este número es the PID of the process.
Sometimes using this command will stop the process. In this case we use the parameter to give more priority -9 ->
see popup copy to clipboard Print
kill -9 kill -9 174 541 174 541
-> Locate
This
Command command to locate the path of a file in linux to know where it is stored. It can be faster because it stores that find routes in a database. It is especially useful when you know the name of the program but do not remember the route.
is necessary to update the index with the updatedb command to reindex the new files. ->
see popup copy to clipboard Print

updatedb updatedb locate file locate file

->
If you only want to display 5 results you can use this command: ->
see popup copy to clipboard Print
locate "*. h"-n 5 locate "*. h"-n 5
-> ls

Command Command indispensable. Used to list the files and directories in a folder. ->
see popup copy to clipboard Print
ls / home / root / ls / home / root /
->
The parameters used for this function are possible "-la." Because it shows detailed information about each file and directory (including hidden files): ->
see popup clipboard copy print
ls-la / home / root / ls-la / home / root /
-> Command
man
This command is used to call the Linux User and ask about a specific command. ->
see popup copy to clipboard Print NOMBRECOMANDO
man man NOMBRECOMANDO
->
If NOMBRECOMANDO There, we will open the application MAN with any information regarding this command, all your options and explanations. This command is essential to further the use of Linux.
Once the application is within man, or quit by pressing ESC and then typing: q
Some commands accept the - help to show information about your options. We can use this method to avoid having to call a man. ->
see popup copy to clipboard Print
NOMBRECOMANDO - help commandname - help
-> Command Tail

This command is used to visualize the final part of a document (English tail tail significantly.) It can be used in many cases, for example, suppose we have an error log of Apache web server that takes several GB. Display them using the cat command error_log is not a good idea, and less if you just want to see a recent error is in the final lines of the file. In this case this instruction would be nice to us we will print the last 50 lines of the error_log file. ->
see popup copy to clipboard Print
error_log tail-n 50 tail-n 50
error_log ->

ps Command The ps command gives a snapshot of all processes that are running at any given time. View Top command to display real-time processes.
Although there are many options to filter and sort the processes displayed by this command, possibly the most often used ->
see popup copy to clipboard Print
ps aux ps aux
- ->
With these parameters are formatted process by showing the most important attributes. Sometimes this command is often used in conjunction with grep to find a particular process ->
see popup copy to clipboard Print
ps aux grep "nombredelproceso" ps aux grep "nombredelproceso"
->
To stop a process using the Kill command, also explained on this page. Command
Top
shows all the activity of processes that are running in real time. And various information system, uptime, memory, etc ->
see popup copy to clipboard
print top top
->
command to stop the press control + c.
has many options to order according to your preferences. If while running you press the shift key + m is sorted by the processes that take up more memory. Uptime Command

shows the time that has elapsed since the system opened. ->
see popup copy to clipboard Print

uptime uptime ->
addition also shows users that are Connected to the computer at that moment and the load averages over 1, 5 to 15 minutes.
dp.SyntaxHighlighter.ClipboardSwf = 'http://www.webtutoriales.com/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll ('code');

0 comments:

Post a Comment