How to get process name from pid

Find the process name using process id

How can I find the process name from the process id? You can find the process name or the command used by the process-id or pid from /proc/pid/cmdline For exmaple: # ps aux ................ ................ user 2480 0.0 1.2 119100 12728  ..

Sendmail configuration and control

Find mail queue in sendmail

The below command's helps you after configuring the sendmail. ExamplesWhat it doessendmail -bp or mailqDisplays the status of the mail queue. List Email files waiting to be sent and ax | grep sendmailLists the process status of the sendmail daemon. May display something like....... sendmail: accepting connections on port  ..

How to set semaphore values settings

Increse the semaphores

To increase or set the semaphores follow the bellow steps. To list the semaphores use the command ipcs [localhost/]# ipcs -ls ------ Semaphore Limits -------- max number of arrays = 128 max semaphores per array = 250 max semaphores system wide = 32000 max ops per semop call = 32 semaphore max value = 32767 To change semaphore setting  ..

Install vlc player with firefox plugin

Install VLV Mulrimedia player with firefox plugin

How to install vlc plugin with firefox browser? To install the vlc plug into the firefox browser in linux follow the below steps. Redhat / Fedora users: login as root / su user and run the command yum install vlc vlc-plugin-* mozilla-plugin-vlc ubuntu uses execute the below command sudo apt-get install vlc vlc-plugin-* mozilla-plugin-vlc This  ..

Vi remove control v characters

Vim remove ^v char

How to remove ^v characters in vi / vim ediitor? To remove control V / ^v characters in vi editor follow the below steps :%s/^v//g Type as below step by step: step 1:- : step 2:- %s step 3:- / step 4:- control+v or ctrl+v step 5:- / step 6:- /g where, %s   ..

How to create a user with all fields

Create user with comment and home directory

To create a user by specifying different home directory and by specifying the user details with his name and other details use the below command. Syntax: useradd -m -d <home directory> -u <user-Id> -s <shell> -c "<comment on user/details>" <username> Example: useradd -m -d /data/home/admin -u 555 -s /bin/bash -c "W3calculator Admin" admin Where, -d  ..

How to change the group of a user

Usermod command to change group

By default a user is created with the same group name. You can change the group of a user to another group as specified in the above example. syntax: usermod -g <groupname> -U <username> You can change the group of a user by using the usermod command. example: usermod -g newgroup -U myuser usermod -g  ..

How to create a new website

How to build a website

How to create a Website? Creating a website is much easier. Just three basic steps are to be followed to create your own website. 1) Register your Domain name. 2) Find a Web Host. 3) Build your site. Registering your Domain name A domain name is the thing that looks like this: "". Your domain name  ..

Error java io filenotfoundexception

Too many open files java io FileNotFoundException

When you receive the error many files open) follow the steps given below to fix the error. Set User Level File Descriptors Limit(FD): you can limit tomcat(or any other users) user to specific limits by editing /etc/security/limits.conf file, enter # vi /etc/security/limits.conf Set tomcat user soft and hard limits as follows: tomcat soft nofile  ..

How to find total httpd size

How to find total php-cgi size

Here is how you can find out total httpd and php-cgi size: ps -aylC php-cgi | grep php-cgi | awk '{total += $8}END{size= total / 1024; printf "Total size in mb: %.2f\n", size}' And for httpd: ps -aylC httpd | grep httpd | awk '{total += $8}END{size= total / 1024; printf "Total  ..

Ps command to kill process particular user

Kill a users process

Te below command will kill the process of a particular user kill -9 `ps -u w3calculator -o "pid="`   ..

How to update clamav antivirus database

Update clamv antivirus database

Try running freshclam as root. You can also daemonize it to automatically check after specified time. Look for /etc/freshclam.conf file that has all the settings for it. To daemonize it, freshclam -d The below command to schedule the update of clamav antivirus database crontab -e (make sure you run this command as root) 25 1  ..

How to find mac address

Find mac address in linux machine

# ifconfig | awk '/^eth0/' the above command will print the Mac address as OUTPUT: eth0 Link encap:Ethernet HWaddr 00:12:B1:57:AB:52 Command to get the mac address of a machine # ifconfig | awk '/^eth0/ {print $5}' OUTPUT: 00:12:B1:57:AB:52   ..

How to crack rar 7z zip file password

Crack rar 7z zip file password in Linux

If you forget your password for compressed archive (rar, 7z, zip), RarCrack is the solution. RarCrack uses a brute-force algorithm to find correct password. You can specify which characters will be used in password generations. Preparing your system for installation Install the following package # aptitude install libxml2-dev build-essential Download the latest version of  ..

Update twitter with curl

Add tweer from command line

Update twitter using curl This function will update your tweet from command line tweet(){ [ ${#1} -lt 141 ] && curl -su user:pass -d source=curl -d status="$1" >/dev/null || echo $(( ${#1} - 140 )) too many characters >&2; } This one is long, but includes error checking and will let you  ..

< Previous 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Next >

Tech Bluff