Wednesday, February 23, 2011

Linux Basic Commands



Linux Commands for Beginning Server Administrators
Basic Commands
To check present working Directory.
[root@localhost ~] # PWD
/root
To check content of directory (folder)
[root@localhost ~] # ls
Creating files and adding data using CAT command. {Use Ctrl + D to save file}
[root@localhost ~] # CAT > File name {to create file}
[root@localhost ~] # CAT File name {to view file contents}
[root@localhost ~] # CAT >> File name {to append file or adding more data}
[root@localhost ~] # arp {Command mostly used for checking existing Ethernet connectivity and IP address.}
[root@localhost ~] # ifconfig {Command line tool to configure or check all network cards/interfaces} [root@localhost ~] # init {Allows you to change the server bootup on a specific runlevel}
[root@localhost ~] # netstat {Summary of network connections and status of sockets}
[root@localhost ~] # nslookup {Checks the domain name and IP information of a server}
[root@localhost ~] # ping {Sends test packets to a specified server to check if it is responding properly}
[root@localhost ~] # rm {Removes/deletes directories and files} [root@localhost ~] # route {Lists the routing tables for your server}
[root@localhost ~] # touch {Allows you to change the timestamp on a file.}
[root@localhost ~] # traceroute {Traces the existing network routing for a remote or local server}

3 comments:

  1. Hi Netha,

    Good Initiative towards linux, the above basic commands are very helpful.

    ReplyDelete
  2. Kiran,

    Interesting Topics for the Beginners to Linux...,

    Keep up the Good Work!!!!!


    Cheers!!!!

    ReplyDelete