Saturday, August 15, 2009

Linux Command

To go to console we can press Ctrl + Alt + F1 on the keyboar
-------------------------------------------------- ------------------


1. - help or man
to display information on how to use the command
ex = ls - help or man ls -> this command will display help on using the command ls
whereas if the man in the Dos command with the /?

2. ls
to view the content of a file from the active directory
ex = ls etc -> means that we view the content of the active file in the etc directory
whereas if the Dos command ls with the same dir

3. mkdir
to create a new directory
ex = mkdir hackers -> means that we will create a directory with the name hacker
whereas if the mkdir command in Dos with the md

4. cd
to move a directory
ex cd = hacker / newbie -> means we go into the directory newbie
The command cd is also in use in Dos (in a sense the use of the same)

5. cp
to copy a file or folder
ex = cp hacker / a.txt home / goal -> means that we will copy the files to the destination folder a.txt
while in Dos command copy cp with the same

6. rmdir
to remove a directory that is empty
ex = rmdir hackers -> means that we delete the directory hacker
while in Dos command rmdir rd with the same

7. mv
to move the file or directory or can it also merename
ex move = / home / hacker.pdf / etc / newbie -> means we move the file into the directory hacker.pdf newbie.
while in Dos mv command together with the move

8. rm
to delete the file
ex = rm hacker.pdf
while in Dos rm command is the same as the del or erase

9. find
to find the file or directory
ex = find / home-name data.jpg-print -> find the file data.jpg to the home directory and display it
while in DOS does not have

10. cat
to view the contents of a file or to create a file
ex = hacker.txt cat -> means that we will see the contents of the file hacker.txt
cat> hacker.pdf -> means that we will create a file hacker.pdf
while in Dos command cat with the same type or copy con

11. pwd
to know the directory path that is active
while in Dos command does not have

12. pico or vi ataus nano
to edit a file or files can be editor
ex = vi hacker.txt -> means that we will edit the contents of the file hacker.txt
Dos command while in vi with the edit

13. who or w
user to view the currently active
ex = aja type who live or w in the console
while in Dos no

14. ps
to see that the process is running at the time the command is executed
while dalama Dos ps command with the tasklist

15. kill
to kill the process that is running
ex = kill -9 124 -> means we kill the process pid 124
while in Dos with the kill command taskkill
ex = taskkill / im cmd.exe -> means we kill the process cmd.exe

16. date
to display or change the date and time on the computer
Dos commands while in use also in the same

17. time
to see the amount of time in which to complete a process so different from the date
while in Dos command functions from time to display the time and the time in the computer

18. more
to view the content of the file and view the output on the screen, and show per screen. usually in order to combine this with the command pipiline (|)
ex = home ls-l | more -> means that we will see the contents of the home directory of perlayar
Dos commands while in use also in the same

19. clear
to clean the screen
while dalama Dos command with the same clear cls

20.reboot
to restart the computer
while in the dos command reboot with the shutdown-r

21.init 0 or halt
to turn off the computer
while in Dos command (halt or init 0) with the shutdown-s

0 comments:

Post a Comment