Home » Archives for Most common Linux commands
Tag: Most common Linux commands
unlike windows Linux handles uppercase and lowercase differently. This is common problem for web sites, developer links the images/files in lowercase and someone uploads the files in uppercase and links break. Here is quick and dirty script to convert all the files in a directory to lowercase. First list find all the file with uppercase. [...]
Continue Reading
SSH Login without password How to use IPTABLES? How to use iostat? How to use grep? How to check fre memory in linux? What is xinted? How to use wget? How to use wget? How to use uptime? How to use traceroute? How to use tcpdump? How to use sudo? How ti use awk command? [...]
Continue Reading
/etc/ssh /etc/skel/ /etc/profile /etc/modprobe /etc/inittab /etc/fstab /etc/exportfs /etc/bashrc /etc/X11 /etc/updatedb.conf /etc/securetty /etc/ntp /etc/grou.conf /etc/anacron /etc/syslog.conf /etc/sysctl.conf /etc/sysconfig/network /etc/security /etc/rc.d/ /etc/nssswitch /etc/ld.so /etc/passwd, /etc/Shadow, /etc/group /etc/logrorate.conf /etc/logrorate.conf /etc/hosts.allow, /etc/hosts.deny /etc/hosts /etc/crontab /etc/resolve.conf /etc/sysconfig
Continue Reading
/etc/securetty The /etc/securetty file allows you to specify which TTY devices the root user is allowed to login on. Any terminal which is commented out or is not present in this file cannot be used by root to login. This is a important security feature if you do not want root logins from all the [...]
Continue Reading
/etc/ntp and /etc/ntp.conf NTP stands for Network Time Protocol and is used to synchronize the system’s clock with an external server. This is helpful is situations in which the system’s clock is going faster or slower than normal. Many internet services are dependent on perfect timing. NTP’s configuration file is ntp.conf Sample content of the [...]
Continue Reading
/etc/grub.conf Linux mainly comes with two kinds of boot loaders, LILO and GRUB. Nowadays GRUB is the popular one since it provides more flexibility and is easier to edit if it is mis-configured. GRUB configuration is stored in /etc/grub.conf or sometimes in /etc/grub/grub.conf. Sample content of the file is given below. Lets try to understand [...]
Continue Reading
/etc/anacron Anacron is similar to cron. Both run specified commnads or programs at a particular time. But there is a major difference. anacron is not affected by system failures. That is for a cron if a job is skipped then the next time it will run is on its scheduled time. So if you have [...]
Continue Reading
What is Syslog.conf? Logs are an important feature of Linux. It helps us to do forensic analysis of server crash, website access and system security. When backups help us to restore a system, log files help us to prevent the old mistakes. In this regard, we get the file syslog.conf. It has entries for which [...]
Continue Reading
What is sysctl.conf? The beauty of Linux lies in the fact that we can change the kernel parameters on the go without restarting the system. Most of the values are entered in the file /etc/sysctl.conf such as IP forwarding, system security and virtual memory configuration. To check the current configuration, use the following command Sample [...]
Continue Reading
sysconfig/network For a system to communicate with the hosts on same network or on different networks such as internet we have to give our system a IP address and a hostname. These are configured in /etc/sysconfig/network file, /etc/sysconfig/networking and /etc/sysconfig/network-scripts directory. /etc/sysconfig/network Sample content of the file /etc/sysconfig/network is given below. NETWORKING means whether your [...]
Continue Reading