Register | Login

Published Articles » Linux

Error in maillog


 


cannot update mailbox /var/mail/vmail for user vmail. unable to create lock file /var/mail/vmail.lock: Permission denied


This might be created because of SELinux. either give permission through SELinux or disable SELinux.


In order to diable SELinux


vi /etc/selinux/config


SELINUX=disabled


And execute the below



top command in Linux

Posted by raje2009 (#87) 2507 days ago (Editorial)

 top - display Linux tasks/process, cpu utilization, load average and memory utilization.


 


To check the swap memory occupied by a process or PID through top command.


Enter the top command and enter ShiftO (O is alphabet)  to choose the various field available among the top command


 


Type p to select the SWAP

redirect top output to the file

Posted by raje2009 (#87) 2507 days ago (Editorial)

Command to redirect the top output to a file.


top -b  -p 12345  -d 10 >> /tmp/stg01_top


We can also redirect multiple pid output to a file in a single line command as below


top -b  -p 12345,6789,9012  -d 10 >> /tmp/stg02_top


-b : Batch mode operation
            Starts to

In order to start SSH session through command prompt first copy the putty.exe to system32 folder in windows.


 


then give the following command


putty 192.168.0.1 -l login_id -pw password -ssh


-l : to pass user login details


-pw to pass password of the user


-ssh represents to make ssh connection to the client


Note: without -ssh putty w

Embedded System Design and Development workshop based training is happening in chennai on June 9th and June 10th


Workshop Content: http://www.ignitemindz.com/index.php/embedded-system-design-and-development-arduino-workshop-based-training-in-chennai-on-may-26-and-may-27


Blow Heaters , from Flexiheat UK , available in Electric, Gas or Oil. Best Quality, Prices and Delivery.German quality engineering.

 



Files can be transferred directly from one Linux server to another Linux server. many people use to transfer the file from Linux to Windows and Windows to Linux. This method will consume lot of time. If to want to transfer a file from one Linux Server to another then follow the below mentioned steps,


1. scp userid@hostname:source_file destiantion_file



Not

Check out the 2017 summer single by June Bugg Range Rover Casanova. This is Ice Berg Slim · June Bugg Range Rover Casanova. Like and Subscribe on to our channel on YouTube for more videos. Thanks all and enjoy!

Find command's output can be substituted to another command.


 


Consider a scenario that you want to search for all log files in /tmp directory. Also want to see which log has SQL exception.


 


find /tmp -name "*.log" -exec grep -l "SQL" {} ;


 


the above command will search for all log files and if the file exist then it will execut

Find command can be used to find files with specific permission like 777 or 775 or 666.

Use the below mentioned command to find the files with 777 permission,

find -perm

e.g. find /home/test -perm 777

This will list all the files with 777 permission under /home/test folder.


In order to search for files with some other permission then change the 777 according the file permiss


Sort News
Username:

Password:

Remember:
YourWiz.com, is a website that will allow everyone to share their knowledge, tip or information through community micro blogging.