Top Linux tutorial sites

As Linux is the third most used desktop based operating system after Microsoft Windows and Apple Mac OS X, it has less support than Windows and mac. So if you have question why it has less support though it’s an advanced OS? There are many answers. The big factor is as Windows or Mac has big market share so all peoples are rushing to them because they get anything for those and because software developers or companies want to see which OS are mostly using. So when a person comes to use a Linux dsitro like Ubuntu he don’t get everything he wants.

As for Ubuntu(a most popular Linux distro) there are many questions like how to install Ubuntu, installing any software and driver, how to Install Ubuntu without removing windows with dual boot, how to configure network, how to run windows programs on Ubuntu and more and more. It’s only some examples of problems for only Ubuntu Linux. But you may using other Linux like Red Hat, Fedora, Back Track, openSUSE, Debian, Tux etc and having different types of critical problems.

Here I listed 10 Websites to Solve Your Any Linux related problems

#1 – Google
Google is made to search anything on the web. So why not you make use of Google for your problem? I’m sure you will get almost any problem solved from thousands of websites. Also learn how to become a Google hacker to get anything from google.

#2 – Linuxquestions.org
Linux Question is a Linux forum where you can get many solved question regarding to different types of troubles. You can also join there by registering and ask your questions and get help.

#3- HowtoGeek.com/tag/Linux
Howtogeek’s Linux tag page is not a forum. It’s a cool blog which contains almost all necessary artiles on different kinds of tuturials with screendshots. Their turorials are very easy to understand and you will really enjoy.

#4- Linuxforums.org
Linux forums is also a community forum like LinuxQestions. You can also get qifferent kinds of solved answares and also ask your own problem by joining.

#-5 – Ubuntugeek.com
They are really geek. If you are using Ubuntu Linux, you must need to check it out. All tutorials are very clear and you will also learn many things there. I highly recommend it for everybody.

#6- Wikipedia
It’s no need to mention the importance of Wikipedia. You will get all wikis with details related Linux system and it will help you to become more effective user of Linux. Also learn how to download whole Wikipedia and read it offline.

#7- Ubuntuforums.org
Ubuntuforums is official forum site of Ubuntu.com site. So they will take your problem with extra weight. A good support team is there to help you regarding to your Ubuntu problem.

#8- Ubuntuguide.org
Ubuntuguide is actually a wiki site which contains many common troubleshootings that ubuntu fall. All guides are very clear and explaines how they work.

#9- Distro Specific Forums
Ubuntuforums is an example of distro specific forum which is dedicaded only for. Every Linux distro has their own forum community. So if you are using Fedora Linux, then you need to join fedora forum at  fedoraforum.org and if you are running openSUSE Linux then join openSUSE forum at forums.opensuse.org and so on. use google to find out which distro forum is for you.

#10- Distro Specific Package Download Sites
Linux packages are those sites which provides softwares packages and repositories for their distro. For example packages.ubuntu.com will contain all software packages installable on Ubuntu linux and for Debian all debian packages can be found at packages.debian.org.

#11- DistroWatch
Distrowatch is nither a help portal nor a blog. But they will help you to quick download any linux distro on you choise and before downloading you can take a glance of overview of that linux. For example distrowatch.com/ubuntu will  provied download links and quick summery of Ubuntu linux. This site is great and must recommended for everybody. You can also order DVD version from here.

After all I want to tell you if you really love Linux, it’s up to you to find out the way to solve your problem. Also check out what is Linux Distro.  Linux is user friendly but not friendly for Ignorants and Idiots.

All Linux Monitoring Commands for every Linux User

This article provides information related to Top Linux Monitoring Tools and Linux Commands which can also be used to measure linux Performance and CPU utilization.

Most Linux distributions are equipped with tons of monitoring. These tools provide metrics which can be used to get information about system activities. You can use these tools to find the possible causes of a performance problem. The commands discussed below are some of the most basic commands when it comes to system analysis and debugging server issues such as:

  1. Finding out bottlenecks.
  2. Disk (storage) bottlenecks.
  3. CPU and memory bottlenecks.
  4. Network bottlenecks.

#1: top – Process Activity Command

The top program provides a dynamic real-time view of a running system i.e. actual process activity. By default, it displays the most CPU-intensive tasks running on the server and updates the list every five seconds.

Commonly Used Hot Keys

The top command provides several useful hot keys:

Hotkey Usage
t Displays summary information off and on.
m Displays memory information off and on.
A Sorts the display by top consumers of various system resources. Useful for quick identification of performance-hungry tasks on a system.
f Enters an interactive configuration screen for top. Helpful for setting up top for a specific task.
o Enables you to interactively select the ordering within top.
r Issues renice command.
k Issues kill command.
z Turn on or off color

#2: vmstat – System Activity, Hardware and System Information

The command vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity.

# vmstat 3

Display Memory Utilization Slabinfo

# vmstat -m

Get Information About Active / Inactive Memory Pages

# vmstat -a

#3: w – Find Out Who Is Logged on And What They Are Doing

w command displays information about the users currently on the machine, and their processes.

# w username
# w vivek

#4: uptime – Tell How Long The System Has Been Running

The uptime command can be used to see how long the server has been running. The current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.
# uptime

#5: ps – Displays The Processes

ps command will report a snapshot of the current processes. To select all processes use the -A or -e option:
# ps -A

ps is just like top but provides more information.

Show Long Format Output

# ps -Al
To turn on extra full mode (it will show command line arguments passed to process):
# ps -AlF

To See Threads ( LWP and NLWP)

# ps -AlFH

To See Threads After Processes

# ps -AlLm

Print All Process On The Server

# ps ax
# ps axu

Print A Process Tree

# ps -ejH
# ps axjf
# pstree

Print Security Information

# ps -eo euser,ruser,suser,fuser,f,comm,label
# ps axZ
# ps -eM

See Every Process Running As User Vivek

# ps -U vivek -u vivek u

Set Output In a User-Defined Format

# ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm
# ps axo stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm
# ps -eopid,tt,user,fname,tmout,f,wchan

Display Only The Process IDs of Lighttpd

# ps -C lighttpd -o pid=
OR
# pgrep lighttpd
OR
# pgrep -u vivek php-cgi

Display The Name of PID 55977

# ps -p 55977 -o comm=

Find Out The Top 10 Memory Consuming Process

# ps -auxf | sort -nr -k 4 | head -10

Find Out top 10 CPU Consuming Process

# ps -auxf | sort -nr -k 3 | head -10

#6: free – Memory Usage

The command free displays the total amount of free and used physical and swap memory in the system, as well as the buffers used by the kernel.
# free

#7: iostat – Average CPU Load, Disk Activity

The command iostat report Central Processing Unit (CPU) statistics and input/output statistics for devices, partitions and network filesystems (NFS).
# iostat

#8: sar – Collect and Report System Activity

The sar command is used to collect, report, and save system activity information. To see network counter, enter:
# sar -n DEV | more
To display the network counters from the 24th:
# sar -n DEV -f /var/log/sa/sa24 | more
You can also display real time usage using sar:
# sar 4 5

#9: mpstat – Multiprocessor Usage

The mpstat command displays activities for each available processor, processor 0 being the first one. mpstat -P ALL to display average CPU utilization per processor:
# mpstat -P ALL

#10: pmap – Process Memory Usage

The command pmap report memory map of a process. Use this command to find out causes of memory bottlenecks.
# pmap -d PID
To display process memory information for pid # 47394, enter:
# pmap -d 47394

#11 and #12: netstat and ss – Network Statistics

The command netstat displays network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. ss command is used to dump socket statistics. It allows showing information similar to netstat. See the following resources about ss and netstat commands:

SS Command in Linux

Netstat Command in Linux

#13: iptraf – Real-time Network Statistics

The iptraf command is interactive colorful IP LAN monitor. It is an ncurses-based IP LAN monitor that generates various network statistics including TCP info, UDP counts, ICMP and OSPF information, Ethernet load info, node stats, IP checksum errors, and others. It can provide the following info in easy to read format:

  • Network traffic statistics by TCP connection
  • IP traffic statistics by network interface
  • Network traffic statistics by protocol
  • Network traffic statistics by TCP/UDP port and by packet size
  • Network traffic statistics by Layer2 address

#14: tcpdump – Detailed Network Traffic Analysis

The tcpdump is simple command that dump traffic on a network. However, you need good understanding of TCP/IP protocol to utilize this tool. For.e.g to display traffic info about DNS, enter:
# tcpdump -i eth1 'udp port 53'
To display all IPv4 HTTP packets to and from port 80, i.e. print only packets that contain data, not, for example, SYN and FIN packets and ACK-only packets, enter:
# tcpdump 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'
To display all FTP session to 202.54.1.5, enter:
# tcpdump -i eth1 'dst 202.54.1.5 and (port 21 or 20'
To display all HTTP session to 192.168.1.5:
# tcpdump -ni eth0 'dst 192.168.1.5 and tcp and port http'

#15: strace – System Calls

Trace system calls and signals. This is useful for debugging webserver and other server problems.

#16: /Proc file system – Various Kernel Statistics

/proc file system provides detailed information about various hardware devices and other Linux kernel information. See Linux kernel /proc documentations for further details. Common /proc examples:
# cat /proc/cpuinfo
# cat /proc/meminfo
# cat /proc/zoneinfo
# cat /proc/mounts

Linux FTP

Usage of File Transfer Protocol(ftp) in Linux

File Transfer Protocol(FTP) in Linux exists in Internet from 1971 and broadly used in operating systems such as Linux. There is lot of changes in the Clients and Users who use this protocol and there are different ways in which this protocol is developed. There are different types of ftp that are available in Redhat. Some of them are original ftp, command-line ftp and graphical clients like gftp and scp which uses ftp and sftp. So there should be controlled access to ftp from the users to upload aswell as download a file from Linux and it should be properly organized.

Improving Security for ftp

Security is the most crucial part for any company and there needs a good amount of security for the data. Some companies only need users to access the data with username and password so that a proper idea for the downloads can be known to the administrator.

Article about Linux-Server-management-via-FTP which was very informative and useful and it provides good amount of information about how to control access to ftp. The information about performing anonymous access and enabling and disabling users to control over files is very informative.

One of the other articles which was very useful was regarding choosing best tool for application compatibility issues which provided details about the program compatible trouble shooter and program compatible assistant and much more. This article gave a brief idea of trouble shooting in windows xp environment.

tcpdump command

Unix Command of the Day

This technical article is about tcpdump command in unix which is used extensively in linux and unix. tcpdump provides information about data that is received in machine and port.
Today’s Unix Command of the Day is tcpdump

tcpdump in unix

tcpdump in Unix is a very popular command

tcpdump – dump traffic on a network

tcpdump

Tcpdump prints out a description of the contents of packets on a network
interface that match the boolean expression. It can also be run with the -w
flag, which causes it to save the packet data to a file for later analysis,
and/or with the -r flag, which causes it to read from a saved packet file
rather than to read packets from a network interface. In all cases, only
packets that match expression will be processed by tcpdump.

Tcpdump will, if not run with the -c flag, continue capturing packets
until it is interrupted by a SIGINT signal (gener- ated, for example,
by typing your interrupt character, typically control-C) or a SIGTERM
signal (typically generated with the kill(1) command); if run with the -c
flag, it will capture packets until it is interrupted by a SIGINT or
SIGTERM sig- nal or the specified number of packets have been processed.

If you want to check for a particular port in a machine

then command is

tcpdump port

If you want to check for a particular ip in a machine
then command is

tcpdump host

Hope this linux command is useful for your programming. good luck

How to change file modification date in linux

if your system date is far front than the files that are copied in to your system, you have to modify the file date . for file modification in linux, it is very simple

use touch *.
It will modify the date and time of all the files in the current directory.

If you have multiple files and directories,

you have to use find command in unix in that particular directory

find . -name “*.*”|xargs touch *

This command will change the file modification date and so everthing will be fine

Page 1 of 212»

Like us in Google +