Learning Basic Linux Commands - Command Line Interface For Linux

Written By Nohara Binti Parahita Niya on Saturday, July 27, 2013 | 6:36 PM

Learning Basic Linux Commands - Command Line Interface For Linux - The commands in the Linux operating system is case sensitive, use the command distinguishes between uppercase (capital) and lowercase letters. It means writing the command 'ls' with 'LS' or 'ls' or 'ls' will be interpreted as a different command.

Learning Basic Linux Commands - Command Line Interface For Linux

In the Unix operating system under a lot of combinations of commands that can be combined in a single command in the command means may consist of a few basic commands. If we trouble or confusion because many combinations of commands, options, or syntax is used, we can see his howto, readme, or on its manual page. Example, if we want to know what are the syntax-syntax that can be used in the command 'ls', we simply typing 'man ls' or 'ls-help' then it will be shown all the information about the command 'ls' from the option-optionnya, syntax writing. The following are some of the commands in the operating system under Linux and Unix in particular comparing it with the existing command in DOS (Disk Operating System).

1. man <command> man or <command>-help
function: to see the manual pages of a command (help)
man ls: see the manual page for the ls command
DOS: <command> /? or help <command>
dir /?

2. ls <option>
function: to see the contents of a directory, for example:
ls-l: to see the file or directory on the active directory to include attributes
ls-la / etc: to see the files or directories in the / etc directory and its file hiddennya
DOS: dir
dir \ windows: to see the file or directory in the windows directory
Note: the operating system under Unix using the '/' to separate the parent directory to child directory, while in DOS using the '\'

3. cd <option> <directory>
function: to change directory (change directory), for example:
cd / home / amikom: to move to the directory / home / amikom
cd .. : To move to the parent directory of the current directory (the parent directory).
DOS: cd
          Syntax is almost the same
Note: use 'cd' without the name of the directory will be heading to the home directory, whereas the use of 'cd' will go to the previous Active Directory.

4. mkdir <name_direktory>
function: to create a new directory
mkdir amikom: to create a new directory with the name of the current directory amikom
DOS: md <name_direktory>
Syntax is almost the same
Note: use spaces in the directory name will be assumed as a new directory name.

5. rmdir <name_direktory>
function: to remove the empty directory
rmdir car: to delete the directory with the name car
DOS: rd <name_direktory>
Syntax is almost the same
Note: to delete the directory is meant to be completely empty

6. cp <target> <destination>
function: to copy the file or directory
so_ti cp / home: so_ti copy files to the directory / home
try cp / home / copies: if the home directory is not a directory copy, then try to be copied files in the home directory as well be renamed with the name of the copy
DOS: copy
          Syntax is almost the same

7. mv <target> <destination>
function: to move a file or directory and rename it or
mv / home / so / etc: move a file or directory so didirektori / home to the / etc directory with the name so
mv amrik AMERIKA: change (rename) files amrik be AMERIKA on active directory
DOS: move
Note: the DOS to rename the file can use the 'rename' or 'ren'

8. rm <file>
function: to delete file
dataku rm: delete my data files in the current directory
DOS: del or erase
          same syntax

9. pwd
function: to determine the path the current directory (print working directory)
DOS: - (none)

10. paint <name_file>
function: to see the contents of the file or create a file
amikom paint: take a look at amikom
cat> Data: create a new file with the name of the data (to end use ^ D (Ctrl + D)) * see a combination of injunction
DOS: type or copy con
          to create a new file in the same DOS 'copy con' while the 'type' only to see the contents of the file

11. find <option>
function: to find the file / directory
find /-name data.txt-print: search directories throughout the data.txt file and display it on a layer
DOS: -
Note: to search for files or directories in a specified directory eg / home after the 'find' followed by the directory name eg 'find / home-name ...'

12. <name_file> pico or vi <name_file>
functions: file editor / text editor.
pico amerika.txt: edit file amerika.txt
DOS: edit <name_file>
Note: if the file name does not exist then it will be considered as a new file (created as a file with that name.

13. who or w
function: to see the current user
DOS: -

14. ps <option> * see management process
function to see what's going on / being executed by the system
DOS: -

15. <signal> kill <pid>
functionality to suspend or shut down existing processes
-9253 kill: to stop the process with PID number 253
DOS: -
Note: for <signal> can use the signal numbers can also use the signal names

16. more <name_file>
function: to see the contents of the file and see the output on the screen, when in one screen is not enough then it will be displayed perlayar
dos: more
ket: more when combined with other commands using the pipeline output of the first command will be displayed perlayar if its output does not fill the screen) * look at the combination of injunction.

17. clear
function: to clean the screen of the display text
DOS: cls

18. reboot or CTRL + ALT + DEL
function: to re-boot the computer (restart)
DOS: -

19. <option> halt or shutdown or init 0
function: to turn off or shutdown the computer
DOS: -
Note: for the command prompt on Windows XP can use the shutdown