How to add timestamp to history command?
history command lists all executed command on server. By default output of command is as follows: 989 date 990 history 991 history 992 w 993 …
history command lists all executed command on server. By default output of command is as follows: 989 date 990 history 991 history 992 w 993 …
Fire the following command to take a backup of apache on your server: cp -a /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak Above is for Centos users For Ubuntu users …
Following script to check the load on the server could be referred:- This script will create a file called chkload wherein all the details will …
Open following file in your favorite editor: CATALINA_HOME/conf/tomcat-users.xml or /usr/local/jakarta/jakarta-tomcat-4.1.31/cinf/tomcat-users.xml Append the following line at second last line: <user name=”Username” password=”secret” roles=”admin,manager”> Restart tomcat. You …
#!/bin/sh cd /root/ wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz tar -zxvf chkrootkit.tar.gz CHKDIR=`ls -1 |grep chkrootkit-` cd $CHKDIR/ make ./chkrootkit
Login to your server as root and at the root prompt fire the below command: root@xxx[~]vi /etc/cron.daily/chkrootkit.sh Insert the following to the new file: #!/bin/bash …
Normally you get the following error Error or warning message : Check /var/tmp is mounted as a filesystem WARNING /var/tmp should either be symlinked to …
a.Login as root in your Linux server b. Type this command: [root@TftpServer ~]# yum install tftp-server c.Once the installation completes, Type this command [root@TftpServer ~]#vim …
If you are using Fedora core Linux server then use yum to install rar : yum install unrar Also you can refer following steps: – …
Sometimes, an error in permissions or syntax within a script will result in an Internal Server Error 500, also known as an HTTP Error 500. …
Download Tarballs to ‘src’ directory: 1 cd /usr/local/src 2 wget https://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz 3 wget https://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz 4 wget https://www.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2 5 wget https://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2 6 wget https://downloads.xiph.org/releases/ogg/libogg-1.2.0.tar.gz 7 wget …