Linux Admin Commands




Before learning the linux basic commands that must be known by the network admin and server on a Linux operating system, it may be a good idea to note the first directory structure of Linux in General, friends can see it in the picture below:

On the image to see that "/" is the highest directory in Linux, does that mean in the directory stored all files needed by the operating system, and the highest account can view or access them is root, therefore as Admins and the root account holders be careful in order not mengahapus that directory to avoid losing all the data and linux into error.

Here are a few basic Linux commands that must be known by an administrator, and according to the author's basic commands is used everyday in operating Linux operating system:



useradd, usermod, userdel
This command is the basic commands to add, delete or modify an existing user, an example of syntax:
# useradd userku -d /home/1 -g server -s /bin/bash

chown, chgrp, chmod
chown is used to change the owner of a file or directory, it is related to the ownership of a file or directory and useful if the comrades are being installed or want to run a server or application to a specific user, whereas "chgrp" to change the Group of a file or directory, and "chmod" is to modify it, the example syntax:
  • # chmod 755 myfile.sh, meaning making "myfile.sh" can be executed by the owner, group or anyone, but only the owner who can be the right to write file berubahn, usually being green.
  • # chown -R apache:apache myweb, meaning change owner and group of the directory webku with all the contents of the files and directories in it belong to the user apache, and if a fella just wants to change it to a directory or file, remove the "-R" from the syntax .
cp, mv, rm, mkdir
This command is used to copy, move or modify, delete and create directories on a Linux operating system, all of which can be used for the file or directory, the example syntax:
# cp -r /home/mydirektory /home/1 

This means that the mengcopy /home/mydirektory along with its contents to /home/1

kill, ps, top
kill is used to shut down the application process or running programs by force, while the ps is to see the process pid and a terminal (tty) that run, and the top is a command to see the performance, which runs on Linux, such as process ram, cpu and processes that are active, the example syntax:
# kill -9 11294 (no. pid)
# ps ax
, the see list pid dan tty

ssh, scp, wget, ftp
ssh is used for remote login server if friends want to do administrative network and servers remotely, while scp and ftp is a program to attract (download) and put (upload) a file on the remote server, and wget is the application Download via command shell that favored authors, example syntax:
# scp -r /home/mydirektory user@192.168.0.1:/home/1 = It means to move the /home/mydirektory to the server with the address 192.168.0.1
# ssh user@192.168.0.1 = the remote to the computer with the IP

SSH can be done from windows application called putty, while scp on windows called winscp, and ftp client such as filezilla also support for windows.

zip, unzip, tar
For the purposes of archiving and extract

traceroute, ping, mtr
Check the path in the network, all comrades probably already familiar with this command.

links, lynx
To check browsing using the command line, for example: # links http://google.com

vi, mc, nano
All of which is to simplify the editor doing a modification on a file or directory

In addition to the command above, there are also commands that are frequently used in network servers and adminsitrais, i.e. "cat and echo", the cat is a command to display the contents of a file, while the echo was a command to insert the contents of a file.

Thus the list of basic commands that must be known to Linux according to the author, and this should be mandatory or to be known by a network administrator and server, if facing constraints leave a comment, thanks.


Next
Previous
Click here for Comments

0 comments: