Send email from Linux using mailx
uuencode file file.log | mailx -s ‘Test’ test@test.com
uuencode file file.log | mailx -s ‘Test’ test@test.com
If you reach the limit of /tmp, an easy was to fix this is to create a symbolic link and to map /tmp to a partition with more space. 1. Quit all running applications 2. Become super user: #su – root 3. Delete the content from /tmp: #rm -r /tmp 4. Create the symbolic link: # ln… Read More »
If you want to truncate a file into Linux, you can use the following commands: > my_file
OpenSuSE 11 has a strange and funny way for loading the modules. If you try to load modules by modifying an .conf file, you will be surprised when you will realize that at the restart, your change will be lost. You have two options: 1. Load that modules only when you need it, in a custom… Read More »
If you have OpenSuSE 11, you will have a big surprise when you try to use mod_rewrite. You will not find any mod_rewrite. The only think you must do is to activate mod_rewrite with the following command: # a2enmod rewrite # rcapache2 restart
If you want to set up the default SMTP server for Linux you have to go to YaST2: YaST2 -> Network services -> Mail Transfer Agent -> Standard -> Permanent -> your outgoing smtp server (use Masquerading to mask your local machine, use Authentification for authentification purpose) -> Finish
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.