Linux Command To Check New Files

May 29, 2008

what command to type if I want to check all latest files (edited/saved) on a certain folder?

View 2 Replies


ADVERTISEMENT

File/Command To Change Number Of Open Files In Linux

Aug 22, 2009

I can't seem to remember, but what's that command or file used in Linux so that you can view/adjust the number of open files and others in the system?

View 3 Replies View Related

What Command To Check For Bad Sector

Dec 22, 2008

I am using linux centos.

Not sure how to check the bad sector for my harddisk.

View 3 Replies View Related

Command To Check The CPU Temperature

Sep 22, 2008

if there is a command to check the CPU temperature. Is the following the right way?

cat /proc/acpi/thermal_zone/THRM/temperature always gives 30 C.

I recently got a Intel Quad Core with 8 GB RAM. When the load is nearing 1.00, the kernel flashes the message below. It is always CPU1 and CPU2 while CPU3 and CPU0 is reported to be normal.

====================================================
Sep 22 00:07:47 server2 kernel: CPU2: Temperature above threshold, cpu clock throttled
Sep 22 00:07:47 server2 kernel: CPU3: Temperature/speed normal
Sep 22 00:07:49 server2 kernel: CPU1: Temperature above threshold, cpu clock throttled
Sep 22 00:07:49 server2 kernel: CPU0: Temperature/speed normal
=====================================================

and /proc/acpi/thermal_zone/THRM/* always gives the following

====================================
<setting not supported>
cooling mode: critical
<polling disabled>
state: ok
temperature: 30 C
critical (S5): 110 C
====================================

View 11 Replies View Related

Check RAM Usage Command

Mar 11, 2007

is there any command to check which user or web site using how much of the system ram?

i got from yesterday on a problem .

my memory usage keep growing until it hit the limit . then i have to restatrt apache to free ram.

i was wondering any command to check which web site is using how much ram?

View 4 Replies View Related

Command To Check Error Logs In SSH

Jan 22, 2008

what is causing this error,

"Internal Server Error. The server encountered an internal error or misconfiguration and was unable to complete your request."

View 4 Replies View Related

How To Check Load Via Ssh And Check Files Causing Load

Jul 1, 2009

I would like to know how to check load via ssh and check files causing load?

I want the ssh codes for 2 different set of control panels, one with cpanel+whm and other with kloxo+hypervm

and I would also know how to check the files causing the load, such as some files could have been interrupted while processing, so they could be causing load some times, so I want to stop such processes if any are running on the vps on my friends accounts

View 5 Replies View Related

Check Which Php Files Are Running

Feb 7, 2007

When I am having server issues with my VPS, tech support comes back with something like

Quote:

Following processes are using CPU resources.

Top Process %CPU 56.4 httpd [ www .myurl.com ] [/php/index.php?qdGFnZ2VkLmNvbQ--&hl1111101001 ]
Top Process %CPU 53.5 httpd [ www .myurl.com] [/php/index.php?qdGFnZ2VkLmNvbQ--&hl1111101001]
Top Process %CPU 25.4 httpd [ www .myurl.com] [/php/index.php?qaHR0cDovL3d3dy50YWdnZWQuY29tLw%3D%3D]

Can you check which php files are running?

where does that come from? I know they use shell access but where is that info?

View 5 Replies View Related

Command For Tranferring Files Through Wget

Jul 16, 2007

I am trying to move over a client from Verio's hosting to my VPS. The verio control panel looks very amateurish and there is no option to do a full account backup. There is no SSH either.

I tried wget -r ftp://user:pass@hostname/directory/* which was mentioned in another WHT thread, but after it gets connected, it shows the following and stops there:

Quote:

Logging in as accountname ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /directoryname ... done.
==> PASV ...

Can anyone suggest a command that will work? There is only about 35 MB of files there, but I spent hours yesterday trying to download through FTP.

View 5 Replies View Related

SSH Command To Record Name Of Files That Contain Certain Text

Jun 26, 2007

I have had multiple websites hacked and need to do a cleanup. I need to run a command that will log all files (including path to that file) that contain <!-- ~ --> to a text file from the /home/* directory.

So far I have recieved 2 different ways to do it but none of them have worked

View 5 Replies View Related

BackupPC Restoring Files Without GUI Or Command Line

Mar 6, 2007

I got our server staff to install BackupPC on our dedicated server and run daily backups. All is well (from what I can tell) but i've come to a point where I want to actually use an archived file.

So I jump into my ftp client, navigate to the backup folder, and download the file. The problem is, the file reads as jibberish. I'm assuming that BackupPC has compressed it.

So the question is two-fold:
1. How do I decompress it on windows (command line stuff is well beyond me)

2. Is there any browser/windows apps that I can use to manage the backups?

View 1 Replies View Related

SSH Unzip Command Changes Files To Lower Case

Oct 4, 2008

I have a small issue that's probably easy to answer. If I upload a zip file to a Linux server, and run this command via SSH:

Code:

unzip -a name_of_zip.zip

Although it does unzip the directories as expected, it makes all file names and folders lowercase. This is a problem when trying to install software that relies on case sensitive names.

Does anyone know what command tells the server to retain the file names and not alter them?

View 1 Replies View Related

How To Show Matching Files In Lower Or UPPERcase With "ls" Command

Mar 27, 2009

I need to show a listing of all files in a directory that match a certain string, with *either* upper or lower case.

So if the contents of the directory are:

FILE1.txt
file1.txt

And then I do an "ls *file*"... I need both files to be in the results.

how can I do this? I couldn't find an "ignore case" switch when doing a "man ls".

View 2 Replies View Related

How To Check Space Used In Linux

Mar 29, 2008

Today I found my Disk /dev/sda3 (/) suddenly become 92% space used.

It is soemthign wrong. May I know how to check the space is used for which files?

View 11 Replies View Related

About TOP Command - Linux

Nov 12, 2008

is there a way to look which process/user used the most cpu in last 30min or in last hour.

View 3 Replies View Related

Linux Command

Oct 16, 2007

on linux how can i delete files older than the current month (that is leave only this month's files) from one subdir and recurse every directory?

View 8 Replies View Related

How To Check For Hardware Details In Linux Shell

Jul 4, 2009

i run a dedicated server with theplanet.i have LAMP.what commands can i use in ssh to view the hardware details of my server ? i have centOS 5

View 5 Replies View Related

Plesk 12.x / Linux :: How CLI DNS Command With Wildcard

May 3, 2015

I want to run a script that will loop through all of the domains on a particular server and remove all MX records with mail.*.I am testing on a single test domain at the moment but I'm not sure how to do the wildcard./usr/local/psa/bin/dns -d example.com -mx '' -mailexchanger mail.*

The following example command is from: URL....To add an MX resource record mail3.example.com specifying domain name mail.example.com as the mail exchanger for the record, and setting the mail exchanger's priority to the DNS zone on the domain example.com to 15:

# ./dns -a example.com -mx mail3 -mailexchanger mail.example.com -priority 15..​What does the mail3.example.com got to do with it? Isn't it just adding a MX record mail.example.com?

View 1 Replies View Related

Plesk 12.x / Linux :: Enabled Rkhunter To Check System

Sep 20, 2014

I enabled rkhunter in Plesk 12 to check the system weekly. I get a warning now, which I never got in older versions of Plesk:

The current hash function (/usr/bin/sha1sum) or package manager (DPKG) is incompatible with the hash function (Unset) or package manager (Unset) used to store the values. Debian 7.6 x64

View 6 Replies View Related

What Is Linux Command For Compressing The Contents Of A Directory?

Oct 13, 2009

What is Linux command for compressing all the files under a Directory, as
well as all the files in sub-directories under that directory, so that upon
uncompression the files are created in the right directory and sub-directory.

Also of course what is the command to un-compress this compressed file?

In case: the Linux OS here is Redhat Enterprise and the web server is Apache.

View 7 Replies View Related

How To Set Up Exim On Linux Server To Not Allow More Than One Recipient Per Command

Nov 28, 2008

how to set up exim on a bare linux server to not allow more than one recipient per command?

I don't want to allow, for example, mail lists.

Example of exim command
2008-11-19 20:14:11 [2135] cwd=/path/to/account 3 args: /usr/sbin/sendmail -t -i
2008-11-19 20:14:11 [2135] 3L5JXP-0001bH-MF <= apache@server.com U=apache P=local S=1091 T="Bla bla" from <apache@server.com> for mail1@ee.com mail2@dd.com mail3@dfffg.com ETC ETC ETC

View 3 Replies View Related

Executing A Linux Command Via Text Message

May 24, 2008

how I might be able to execute a Linux command by sending a text message to some email address? Where if that email address gets a message (either any message, or perhaps only messages containing some password), a Linux command is executed, e.g.

named -u named
Perhaps via bash script.

View 14 Replies View Related

Auto Complete Feature For Linux Command

Jul 20, 2007

I am wondering is there any software could offer auto complete feature for linux command? most linux need enter lots of parameters, if there is such a tool, that could be cool & great.

View 6 Replies View Related

Plesk 11.x / Linux :: Command To Validate All MUs Have Been Applied?

May 19, 2014

With the endless security patches, is there a command that can be used to verify that all current microupdates have been applied?

View 4 Replies View Related

Plesk 12.x / Linux :: Cannot Remove PTR Record With DNS Command

Mar 10, 2015

i have to delete all PTR records in over 80 domains in a Plesk 12 panel, when i tried to run the dns command to remove the PTR record from a domain, i got the error :

Code: Unable del record in DNS server: unable find DNS record ...

There is a KB article about this specific problem : [URL] .... , but it refers to older Plesk versions (8.x-10.x). I gave it a shot by copying the fix file from all 3 different versions to /usr/local/psa/admin/plib/api-common/ and i got the following PHP errors:

Code:

PHP Warning: include_once(class.PHostingManager.php): failed to open stream: No such file or directory; File: /usr/local/psa/admin/plib/api-common/cuDns.php, Line: 4
PHP Warning: include_once(): Failed opening 'class.PHostingManager.php' for inclusion (include_path='/usr/local/psa/admin/plib:/usr/local/psa/admin/externals'); File: /usr/local/psa/admin/plib/api-common/cuDns.php, Line: 4

[URL] ......

Is there any workaround this PTR issue? Also, is Parallels going to update the article and provide solution for Plesk 12?

View 4 Replies View Related

Plesk 12.x / Linux :: Command Died With Status 100

Mar 30, 2015

Up till the last update Plesk was working correctly. After the latest update I can't send out mail in any form:

webmail, pop3, wordpress forms, etc.

This is the error message I get:

Command died with status 100: "/usr/bin/spamc".
Command output: Mail handler 'limit-out' said: REPLY:554:5.7.0
Your message could not be sent. The user spamfilter is not allowed to send email.

When I reverted back to the last snapshot before the update everything works fine again. But the automated update bot messes it all up again when it downloads the newer version.

View 2 Replies View Related

Plesk 12.x / Linux :: Postfix - Command Rejected

Jul 25, 2014

I just upgraded my Plesk 11.5 on Plesk version: 12.0.18 Update #9 , and after the upgrade the Postfix stop working. And forwarding, receiving is not working at all and I am getting message bellow.

OS: CentOS 6.5 (Final)
Plesk version: 12.0.18 Update #9

This is the mail system at host nsXXXXX.ovh.net.You can delete your own text from the attached returned message. mail system

<xyz@gmail.com>: Command rejected

Final-Recipient: rfc822; xyz@gmail.com
Action: failed
Status: 5.7.1
Diagnostic-Code: X-Postfix; Command rejected

View 2 Replies View Related

Linux Proc Command & Which HDD On Server Scsi Or Sata

Jun 20, 2008

1) what is the command to find out what processor is installed on the server

2) how do i find out what type on hdd i have sata or scsi?

whats the ssh command to find these two things out?

View 3 Replies View Related

Plesk 12.x / Linux :: Command Line CLI DNS Template Changes Warning

Jul 23, 2015

I'm using this script as a cron to generate DKIM keys for the domains I have. It's an easy script. And it does it's job just OK. I have the necessary software installed and configured.

The way it works is:

The script check if the domain in queue has a record for it. If it doesn't, OpenDKIM generates a one time DKIM record for mail._domainkey that I am entering to my dns records for all the domains I have.

After creating the DKIM record, it checks and deletes mail._domainkey records if there's any. Then adds the generated DKIM to plesk dns zones and disables/enables greylisting to create the appropriate dns entry.

If it does have a DKIM recors on the hdd already, then it removes

mail._domainkey​and
TXT o=-​entries.

After that it basically adds the already generated DKIM record and it disables/enables the greylisting for each domain in order to recreate "TXT o=-"

Up till here, it works fine. I can see these entries when I check the DNS Settings. They are there.

But whenever I run this script either via cron or manually, I get an error message on my panel: (You can check the screenshot as well)

Code:

Warning: The DNS zone was modified. If you would like to apply DNS template changes to this zone, either click the 'Apply DNS Template Changes' button on this page or choose the 'Apply the changes to all zones' option in Server Administration Panel > Tools & Settings > DNS Template Settings > Apply DNS Template Changes.

And unless I manually click "Apply DNS Template Changes" for EVERY SITE it doesn't go away.

So, I was wondering, is there a way to scriptize that command? Or how to prevent it?

This is the command I use to generate DKIM and add it to Plesk database, also if any such record exists, delete and re-write it:

Code:

#!/bin/sh
ADMIN_PASS=`cat /etc/psa/.psa.shadow`
MYSQL_BIN_D=`grep MYSQL_BIN_D /etc/psa/psa.conf | awk '{print $2}'`
mysql="${MYSQL_BIN_D}/mysql -N -uadmin -p${ADMIN_PASS} psa"

query="select name from domains;"
domains=`echo $query | $mysql `
for i in ${domains}; do
echo "Processing $i"

[Code] ....

View 4 Replies View Related

Plesk 12.x / Linux :: CLI - Scheduled Backup From Command Line

Apr 9, 2015

I'm looking to set up a schedulled backup from command line.

I haven't found the correct command, could you tell me if it's possible and how ?

Additional question: I'm looking too, to set for the server the max number backup file to save, do you know how to do it from cli ?

View 8 Replies View Related

Plesk 12.x / Linux :: Remove Backup Via Command Line?

Jan 17, 2015

Is there a command line way of removing Plesk backups?

I'm looking for the command line equivalent of these steps: Log into Plesk as the server admin > "Tools & Settings" > "Tools & Resources" > "Backup Manager" > check a backup and click "Remove".

We have a script that copies the contents of "/var/lib/psa/dumps/" to Amazon S3 for long-term storage of backups. It runs nightly after a scheduled Plesk backup. Once that script completes successfully, we'd like to delete the Plesk backup to free up disk space. We have Plesk's "Maximum number of backups in the repository" set to 1.

But Plesk appears to keep that backup around while creating a new backup (which makes some sense). This is causing us trouble because the server does not have enough disk space for two backups. As a temporary solution, I'm manually deleting the backup each day through the Plesk admin, but would like to automate it if possible. If automation is overly complex/risky, we'll look at upping our disk space instead.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved