Test sendmail
If you want to test send mail you must use the following command: /usr/sbin/sendmail -bv -oL10 test@adriangrigoras.com After that you must check your root’s mail with mail program or mutt.
If you want to test send mail you must use the following command: /usr/sbin/sendmail -bv -oL10 test@adriangrigoras.com After that you must check your root’s mail with mail program or mutt.
If you want to read emails that are send to root, one way is to read with the mail program. An easier way to do this is with mutt.
If you want to view what users are logged in into your system, you can use this command: who Thanks,
For ungziping you must run the following command. This command will replace the .gz file with a .tar file gzip -drv phpbb-platinum-0.5beta.tar.gz After that, you must run the following command: tar -xvf phpbb-platinum-0.5beta.tar That’s it.
When you want to run a command and save the output to a file an easy way to do this is by nohup ./myscript.sh & Cheers,
When you want to create a symbolic link to a certain location all you have to do is ln -s /usr/local/apache/logs ./logs This will create a symbolic link inside current directory: logs which goes to /urs/local/apache/logs Cheers,
When you want to close a console, but you want to leave the program which runs active you must run the following commands: Ctrl + Z – this will put the process in background, but in inactive state bg – will activate the process in background If you want to bring it to front fg… Read More »
To show the kernel version all you have to do is to run the following command from console uname -r Cheers,
When you need to view all open ports from you Linux machine all you have to do is to run the following command in the console: netstat -tulpn Cheers,
When you need to see how many files a program opened, you must run the following command: lsof | grep my_program | wc -l Cheers,