Basic Linux Shell commands |
| Written by Michael D. | |
|
Note that every command has lots of options available. To see all the manual pages for the specific command, simply type "man <command>". It is important to understand that under Linux operating systems, commands are case-sensitive. This means that "A" is different from "a". To go through the file system, use:
- pwd - Prints out on the screen the working directory (eg /etc/ssh)
- find <search_criteria> (used for filenames)
- more <filename> - will display a file page by page
They usually mount automatically, but you could end-up in the situation where you must do it manually. This number is required to stop a service or application. Use kill <PID> to stop a task. - top - works somehow like the Task manager in Windows. It shows up the system resources, the processes running, average load, etc. Useful is top -d <delay> - sets up the refresh period. You can put any value from .1 (10 ms) to 100 (100 seconds) or even greater. - uptime will display the system's uptime and the load average for that moment, 5 minutes and 15 minutes in the past. Usually, the load average is calculated as the percent of system resources (processor, RAM, harddisk I/O, network load) used at that moment. 0.37 means that 37% was used. A greater value like 2.35 means that the system had to que some data because it should be 235% faster to compute all without problems. Anyhow, this can be different from distribution to distribution. - free - will display information on system's memory - ifconfig <interface_name> - view detailed information about your network interfaces; generally your ethernet network interface will be named eth0. You can also set up the network settings like ip address or so by using this command (see man ifconfig). If something goes wrong, you can also stop/start the interface by using ifconfig <interface_name> up/down - passwd - enables you to change your password (passwd own_user or others if you are logged in as root) - useradd - enables to add a new user (see man useradd)
Anywhere you are, you cand use the TAB key to autocomplete a filename or command. This will be usefull when getting used to the commands available. You can also hit up arrow and down arrow to scroll through the history of the commands you entered. To exit the shell type exit or logout.
written by satyen bhama , July 17, 2007
How do u find out the maximun Segment Size (MSS), how it is related to MTU.
written by Mihai Dobos , July 19, 2007
Hello To see the MSS and MTU values, get an utility called iperf. In Fedora, type 'yum install iperf' (logged on as root). After installing it, you can run it to check the network performance. This is an example output: [root@LinuxSrv psybnc]# iperf -m -c 192.168.0.100 connect failed: Connection refused write1 failed: Broken pipe write2 failed: Broken pipe ------------------------------------------------------------ Client connecting to 192.168.0.100, TCP port 5001 TCP window size: 16.0 KByte (default) ------------------------------------------------------------ [ 3] local 0.0.0.0 port 56715 connected with 192.168.0.100 port 5001 [ 3] 0.0- 0.0 sec 0.00 Bytes 0.00 bits/sec WARNING: Path MTU Discovery may not be enabled. [ 3] MSS size 524 bytes (MTU 576 bytes, minimum) The MTU and MSS are related depending on the packet state. In worst case when the headers are full (both IP and TCP maximum sized), MSS = MTU - 60 - 60 = MTU - 120. Best case is when MSS = MTU - 40. Read more on this in RFC 879 - TCP maximum segment size and related topics http://www.faqs.org/rfcs/rfc879 Hope this was useful. Best regards.
written by Senthil , September 14, 2007
What is means in sed command using linux? Explain with Example.
written by Mihai Dobos , September 15, 2007
Hello The sed command is used to edit a string of text; it will process input stream (a file or a pipe). Run the command "man sed" to see all the details on it. Mihai D.
written by Kanwar Singh , June 09, 2008
I have created macro on the linux server which convert word to pdf file. When i use the system cammand on the linux server it works fine. But when i use same cammand from the php script to run that macro it does not work. Basic shell cammands are working like ls,whoami etc. Please me know what should i do to run macro throgh php shell script? Thanks
written by Vijaykumar.d , June 14, 2008
IAM FRESHER IN LINUX .KINDLY FORWARD BASIC LINUX COMMANDS AND LINUX RELEATED TO MY MAIL ID. This e-mail address is being protected from spam bots, you need JavaScript enabled to view it Do you need more help? Ask now!
|
|
| Last Updated ( Saturday, 23 June 2007 ) |