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
ADVERTISEMENT
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
Nov 8, 2007
server has huge serverloads of 25+ at random. When I login as root and type the top -s command, the highest cpu usage is less than 5%. The total is less than 50%. Yet my serverload can reach as high as 80.
I also get the "lfd: High 5 minute load average alert " email, but that also does not show what process uses such high resources.
How can the hugh serverload be seen and expained?
View 4 Replies
View Related
Mar 29, 2009
im on a vps with linux and directadmin installed, how do i activate the function to show all files in ftp including hidden files and also how to prevent hidden files from creating?
I need to perform this functions on multiple accounts under my vps, how do i do it?
View 1 Replies
View Related
May 4, 2008
I just deleted several large files via FTP, but when I go in to SSH they still appear. Is there some sort of lag or something?
View 1 Replies
View Related
Sep 13, 2007
on my old centos servers I can show hidden (.file) files with normal 'ls' and 'ls -l' command but on new I can`t show hidden files on that way, I must use command 'ls -a' to show that files!
Also, on new server I only see dir in who I working:
[root@server dir]#
but on old server this look:
root@server [/usr/local/dir]#
Also, on new server I have new colors for dirs, files..
View 3 Replies
View Related
May 29, 2008
what command to type if I want to check all latest files (edited/saved) on a certain folder?
View 2 Replies
View Related
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
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
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
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
Aug 28, 2007
I have a dedicated linux/cpanel server running various websites with the shared ip and one website with a dedicated ip.
But when sending mail through sendmail from the dedicated ip website the ip in the helo greeting is not matching the ip of the sender, it is using the main shared ip rather than the dedicated ip which is producing a 550 error from some receiving mail servers. I have racked my brains trying to figure this out and was wondering if anyone else has/had a similar experience and found a solution.
By the way the helo greeting sent in mail from the shared ip websites is fine...
View 2 Replies
View Related
May 15, 2009
My current URLs look like index.php?order=key, where 'key' is of course the key. I'd like to transform my URLs to a pattern that doesn't currently have any association with the 'key' used in the URL. I'm using the RewriteMap directive to map keys to new values. If I can take the following example URL:-
I'd like to transform index.php?order=hc to /homecare, so I've mapped the key with the value in the two column syntax required within a text file and linked to it.
My initial assumption was that I could then just RewriteRule the variable, but from what I've read I need to use RewriteCond to capture the query_string first.
So, this is my complete ruleset so far:-
RewriteEngine on
RewriteMap rewritemap txt:C:/WINDOWS/system32/inetsrv/rewrite/rewritemap.txt
RewriteCond %{QUERY_STRING}
RewriteRule ^(.*) test.asp?order=${rewritemap:$1}
I'm pretty sure my RewriteRule is correct, but of course there is no rule currently attached to RewriteCond, since I'm unsure what I need to put there.
Would you guys be kind enough to help me out a bit?
View 5 Replies
View Related
Apr 29, 2008
Does anyone know the secret behind the server configuration of the big boys in hosting who offer as much as 1.5TB webspace and $15TB bandwidth or even unlimited for less than $10/month? I want to offer such a high webspace at less than $10/month too.
I want to know the exact server configuration in terms of hard drives/accessories that can make this possible and very reliable data centers where I can co-locate the servers with unmetered bandwidth too.
The estimated cost of the hard drives/accessories and any other associated costs should be stated clearly.Linux/Unix platforms preferred.The DC should be ready to do the configuration and the cost would not leave a serious dent on my financial resources.
View 8 Replies
View Related
Jun 12, 2013
I want to redirect all the URLs starting from specific characters.
For instance:
www.example.com/abc-apple
www.example.com/abc-bat.html
www.example.com/abc-cat.php
All of the URLs above starts with "abc-" I want a redirect code to redirect all URLs starting from "abc-" to a single URL i.e. www.example.com/allĀ
View 1 Replies
View Related
Feb 14, 2009
I'm hosting some domains on a whm setup. One of the domains has outgrown the shared hosting setup, so I'm moving it to it's own vps. I want to limit the downtime, and I understand I should lower the TTL on the domain.
The registrar is Network Solutions and the nameservers are pointing to the shared host (which is on a whm/cpanel setup). How can I lower the ttl on this domain? Do I have to move the domain to a more advanced DNS service to achieve this, or is this something I can do within whm?
View 9 Replies
View Related
Feb 23, 2008
I don't mind have nfs running, but how do I keep it running at the lowest as possible... seems like it's hogging up all my usage/cpu's...
View 2 Replies
View Related
Jan 31, 2008
I was checking my server information today on WHM panel and this is what I saw:
Processor #1 Vendor: GenuineIntel
Processor #1 Name: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz
Processor #1 speed: 1596.000 MHz
Processor #1 cache size: 4096 KB
Processor #2 Vendor: GenuineIntel
Processor #2 Name: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz
Processor #2 speed: 2660.000 MHz
Processor #2 cache size: 4096 KB
Why is the Processor #1 speed labeled as 1.6 ghz? Processor #2 speed never goes down no matter how high the load is. Could it be the reason that my server can't handle 4 websites with a cumulative total of 20k unique hits per day?
View 8 Replies
View Related
Aug 14, 2008
I'm having a problem with high MySQL CPU usage on my server, one of my sites is getting hit pretty hard right now and MySQL is just killing the box. Its averaging a load of over 20, CPU usage is around 130%.
here is my my.cnf file. is there anything in their that should be changed to help lower the CPU usage?
# The MySQL server
[mysqld]
port= 3306
socket= /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 256M
max_allowed_packet = 1M
table_cache = 512
max_connections=500
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 2
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
Server Specs.
Pentium E 2.0Ghz
2GB ram
2x 320GB hard drives.
Cent OS 5
Cpanel
View 5 Replies
View Related
Jun 18, 2007
On a Cpanel server, lightly loaded, but some fairly large sites (~3GB stored) loads get pretty high during CP backups (D/W/M to secondary drive, compression on). It looks like RAM is showing mostly used during this time (977,555 out of 1,026,348), and iowait is ~50, sometimes quite a bit higher at ~80 on the larger accounts. Not pegged at that amount, but fairly steady. This box only has 1GB RAM, so I'm thinking adding another Gig would alleviate this issue.
OS: CentOS 4.x
Hardware: Intel P4 3.6HT/1024MB/2x160GB
View 12 Replies
View Related
Jul 8, 2014
My plesk 12 is working, but one subscription doest show, or any of the domains.
Doing some digging got to this:
[root@server src]# /usr/local/psa/bin/sw-engine-pleskrun check_db_integrity-beta.php
PHP Notice: Undefined variable: PLESK_DB_HOST in /usr/local/src/check_db_integrity-beta.php on line 240
List of records in [psa.domains.cl_id] that miss a matching record in [psa.clients.id]
0
List of records in [psa.dom_level_usrs.dom_id] that miss a matching record in [psa.domains.id]
27, 32, 36, 43, 61, 83, 86
[Code] ....
ERROR: Table "smb_apsImportedResources" is not found in database "psa"!
ERROR: Table "smb_apsImportedResources" is not found in database "psa"!
List of records in [psa.domains.webspace_id, cl_id WHERE webspace_id<>0] that miss a matching record in [psa.domains.id, cl_id WHERE webspace_id=0]
20:1, 52:1, 52:1, 52:1, 68:1
View 1 Replies
View Related
Jun 27, 2009
I'm gathering info for getting a new dedicated server, planning on using my own colocated hardware, but still looking at what's available in dedicated servers at the same time.
There are lot's of dedicated servers being offered at prices lower than 1U colocated rackspace. How's that possible, what am I missing?
View 13 Replies
View Related
Feb 13, 2008
When i check the server status is shows a high server load.
How do I lower the server load? it looks like for mysql activity.
View 14 Replies
View Related
May 8, 2007
I host my DNS with DNSmadeeasy.com , I noticed that I have daily more than 350.000 DNS requests for main domain, This domains got about 80.000 uniqes/day, so this is strange how can there be 350.000 DNS requests/day. Seems that I'll go over the quota because of this.
The TTL for all domains is set to 86400.
Is there a way to discover how its possible ? And also is there a way to do something to make this number lower (DNS requests)
View 1 Replies
View Related
Mar 9, 2008
to buy a good dedicated server to serve my clients here. So im looking from advices on a good hosting company USA based.
But i have been ping several major hosting USA company (like, mediatemple, theplanet, etc...) and i still didn“t get a Ping under 130ms.
If i ping a good EU company i get 60 to 90ms.
I know that the distance is bigger but,
Does anyone knows any good USA hosting company with a Ping to Europe lower than 100ms?
My budjet goes up to 800 $/moth
View 14 Replies
View Related
Oct 11, 2012
Does the apache virtualhost environment lower the web or apache server's security? virtualhost has no security issues.
View 3 Replies
View Related
Apr 30, 2007
Is there a command i can type into the ssh console to stop a current transfer that i started wit the wget command?
the file im wgeting always stuffs up at 51% but then the server just retries and starts again, its done it 3 times so far and i just want to completely cancle the process if possible....
View 9 Replies
View Related