Tag overview for: 'command'
Entries on this site with 'command'
- How to resolve the issue "Account not created-- error-- Duplicate MX record exists"?
Run the following command from the CP server as a cPanel user and that will take care of this problem:- java psoft.hsphere.tools.MailServiceDuplicateRecordsRemover --all - How to check the Postfix queue with the Qshape tool?
Generally there are many ways to check the emails in the queue on Postfix such as:- mailq postqueue -q But Qshape is another very nice tool which shows the number of email - How to compare the contents of two files
Using the diff command we can compare the differences in two files:- diff file1 file2 The command above will compare two files for differences. - How to check for the OS version and hardware structure on the Linux server
We can check the installed OS version on the Linux server with the help of the files below:- [[email protected]]# cat /etc/redhat-release CentOS release 5.X(Final) [root@ - MySQL Error 1129: Host 'xxx.xx.xxx.xxx' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
To fix this error, run the command below:- ]# mysqladmin -p flush-hosts � � � where -p = password of the MySQL admin (root) user. - How to force users to change their passwords after their first login in Linux
Please use the command below to insist that the user changes their password after their first login due to security reasons. # chage -d 0 test - Restricting a File or Directory using the Access Control List
ACL is the access control list for a specific file or directory. By default an ACL is associated with a directory and the files inside that directory inherit the ACL of th - Checking admins and logins on the server through the command prompt
Go to the command prompt "cmd" of the server and then write the command below:- ------------------------------------------------------------------------------------------- - How to enable an SSH port other than 22
Steps :- 1. Make an entry of that port in the file "/etc/ssh/sshd_config". 2. Restart the sshd service. � � � That's all. - Permission reset for files/folder on Windows
Please use the command below to reset permissions on the files/folder: attrib -R -S XXXX\*.* /S /D Here XXXXX stands for the complete file path with the file name. - The delete command for hidden files on the Windows server
Please use the command below to delete hidden files:- attrib -H -R -S "XXXXX" Here XXXXX stands for the complete file path with the file name. - Command to recycle the application pools
To recycle the application pools, you need to run the command below on the command prompt: appcmd list apppool /xml | appcmd recycle apppool /in - How to find block device attributes in Linux
There is a useful command-line utility called "blkid" to locate/print block device attributes. Its syntax is:- # blkid command output example :- # blkid /dev/sda1: UUID="1 - How to Enable the Quota on a drive/partition in Linux
Many times it is required to enable the quota on a drive where there is mostly user data in order to check the size used by a specific user on the system. For that, we mus - How to make a service stay ON after a reboot?
Sometimes it happens that a server has been rebooted but we forgot to check if the services which were started before the reboot are still up - and sometimes this creates - How to delete all the files in a directory except for some specific format files
The command below will delete all the files in the current directory except for the .php and .html files:- rm !(*.php*.html) - How to find out the make, model and serial number for SCSI or IDE hard disks under the CentOS Linux server?
To get the make, model and serial number for SCSI or IDE hard disks under the CentOS Linux server, we can use hdparm command . Command syntax :- # hdparm -I /dev/sda # hdp - Monitoring the real-time logs on the server
Sometimes we need to check out the logs or we can say real-time logs occurring on the server for a particular service. For example: to check the logs for a website or for - How to check the architecture (32 bit or 64 bit?) on a Linux machine
The following commands can be used to see the server architecture:- getconf LONG_BIT � � � � � � or � uname -m - Lock/unlock a Linux user account
There are times when we need to remove a user account that is not in use but sometime later we'll need that again and then we always think at that time that if we hadn't r - How to decrypt a private key through the Linux command line
Save the encrypted key in the file enc.key and run the command below and paste the password. You will get the decrypted key in the file dec.key. [[email protected] ~]# openssl - How to assign an IP on the Linux machine with the ifconfig command
#/sbin/ifconfig eth0 netmask Example:- #/sbin/ifconfig eth0 192.168.1.2 netmask 255.255.255.0 - Sending email in Linux using the "echo" command
Sometimes we need to send an email from the server to test the mail delivery from the server and if we don't have any user/domain to send the email via authentication. In - Download files in the Linux CLI mode
>> We can download any files through the "wget" command in the Linux command mode :- ? wget www.example.com/archive.zip >> We can download and store the above examp - How to Reset IIS
For resetting the IIS, follow the steps below: 1.Go to the command prompt. 2.Write iisreset and click enter (this will stop and then start the IIS automatically). Note:- I - Command to check the PID and to kill the process on the Windows 2008 server
Run the command below on command prompt to check the PID and to kill the process on the Windows 2008 server. C:\Windows\system32>%windir%/system32/inetsrv/appcmd list wp C - Reconfiguring a Domain for Plesk
If a domain is not getting deleted from the Plesk control panel, and it is getting deleted from IIS we can fix this by running the command below. on Windows : Open the com
Related tags
1129, 2008, 22, access, account, acl, active, admin, application, architecture, assign, attachment, attributes, bit, block, centos, change, check, chkconfig, cli, cmd, commandline, commandprompt, compare, connection, contents, control, controlpanel, cp, database, decrypt, decryption, defer, deferred, delete, device, diff, directory, disk, domain, download, drive, duplicate, echo, edquota, email, enable, encrypt, encryption, error, file, files, flush_hosts, folder, format, harddisk, hardware, hidden, hold, hosting, hsphere, http, httpd, ide, ifconfig, iis, installed, ip, ipaddress, issue, key, linux, linuxhosting, lock, login, logs, machine, mailqueue, monitor, mx, mysql, mysqladmin, on, operatingsystem, os, panel, partition, password, path, permission, pid, plesk, pool, port, postfix, postqueue, private, process, prompt, qshape, queue, quota, realtime, reboot, reconfiguring, record, recycle, reset, resolve, restart, restrict, scsi, server, service, specific, ssh, sshd, structure, tail, tool, unlock, user, username, version, webhosting, wget, windows, windows2008, yumExternal feeds for 'command'
Click icon for a list of links on 'command'