This question is a logical continuation of http://serverfault.com/questions/45245/how-can-i-delete-all-files-from-a-directory-when-it-reports-argument-list-too-lo
I have
drwxr-xr-x 2 doreshkin doreshkin 198291456 Apr 6 21:35 session_data
I tried
find session_data -type f -delete
find session_data -type f | xargs rm -f
find session_data -maxdepth 1 -type f -print0 | xargs -r0 rm -f
The result is the same:
find: memory exhausted
What can I do to remove this directory?
I have a flash drive that was used primarily on a Mac, and it was ejected improperly. Now when I put it back in, the computer (I tried 2 different Macs,and 3 PCs) does not even register the flash drive- it does not show up in Finder or in My Computer. Any ideas how to get the lost files back?
I have a big rar archive which is split into 700mb parts. I only have part 5 and 6 and there is a 40mb file in there that I wanna extract using Winrar. I know the whole file is stored in part 5 because when I open part 5, that file gets listed (and many other files). But I can't extract any of them, cause it asks for previous archive parts which I'm sure it really doesn't need.
Is there a way to do that?
As it is told in git-config manual, I have three files to specify git repo configuration: $GIT_DIR/config, ~/.gitconfig and $(prefix)/etc/gitconfig. Is it possible to make git read another config file (for example .gitconfig in root of the repo) after reading $GIT_DIR/config?
I want it as I created git command aliases in .git/config and I would prefer to store them in repo, so I can restore them when cloning and for example.
I have installed WAMP 2 and am using firefox 3.6. I have saved my php file test.php in
C:\wamp\bin\apache\Apache2.2.11\htdocs
and I now open http://localhost/test.php in my firefox browser but I get a file not found error
Not Found
The requested URL /test.php was not found on this server.
What am I doing wrong?
Hi all,
I've a directory containing around 2.8 lacs of files. I want to move them to another directory.
If I use 'cp' or 'mv' then I get an error 'argument list too long'.
If I write a script like
for file in ls *; do
cp {source} to {destination}
done
then because of 'ls' command , its performance degrades.
How can I do this?
Is there a database or repository of the legitimate checksums for Microsoft system files? We think we have a 0day on DNS for Windows 2003 SP2 using IRC for command and control. (Latest McAfee does not see an issue). I want to compare our customer's dns.exe and associated DLLs with the real ones. (I will grab a fresh SP2 and hotfixed system to do this, but wonder how to do this in future without needed to do this.)
I am using http://www.pnotepad.org/ (i wouldnt mind switching to something else if it lightweight and has most/all features i like which i'll check on a app by app basis)
When i create a new tab/file and save it unless i write .txt i get a file with no extention. Which makes it hard to open since i cant double click it (i dont think i can tell win7 to set a default app for files with no extension)
How do i make pnotepad save with a .txt when non are specified?
I have LAMP running in Ubuntu.
However, my files are located on a separate NTFS hard drive (/media/shared/mysite/).
going to http://localhost gives me a 403
how can i, securely, allow apache to read/write the NTFS disk?
'shared' is currently being mounted when system boots. here's the entry in fstab:
/dev/sda1 /media/shared ntfs-3g quiet,defaults,locale=en_US.utf8,umask=000 0 0
I have 2 gz files those I need to merge into one.
time join <(zcat r_TR2_2012-05-28-08-10-00.gz) <(zcat r_TR1_2012-05-28-08-10-00.gz)
The above statement is not working as expected. I am using 3 commands to do the needful.
gunzip r_TR2_2012-05-28-08-10-00.gz
gunzip r_TR1_2012-05-28-08-10-00.gz
tar -zcvf combined.tar.gz r_TR1_2012-05-28-08-10-00 r_TR2_2012-05-28-08-10-00
Is there any way to do it in 1 statement?
Have webdav uploads working great on one our boxes but anytime there is a ; # or * (and maybe a few others) the upload fails. That is expected since they're restricted characters but I'm curious if there's a way to rewrite/rename those files on their way through. We don't care what the name is really it just has to make it up to the server. Started looking at mod_rewrite solutions but my rewrite fu is rather weak.
How do you automatically pack/minimize the HTML, CSS and JS files served on a webpage.
More specifically, I wish to have this for a wordpress website.
Should it be done at the webserver level (lighttpd), at the application level (wordpress), at the PHP level, or somewhere else?
Some file from my inetsrv directory (c:\windows\system32\inetsrv) were accidentally removed. Is there a way to get them back? Reinstalling IIS server role doesn't help, because Windows doesn't remove inetsrv directory when removing the role. Copying files from another Server 2008 machine doesn't help neither.
I am using http://www.pnotepad.org/ (i wouldnt mind switching to something else if it lightweight and has most/all features i like which i'll check on a app by app basis)
When i create a new tab/file and save it unless i write .txt i get a file with no extention. Which makes it hard to open since i cant double click it (i dont think i can tell win7 to set a default app for files with no extension)
How do i make pnotepad save with a .txt when non are specified?
I have my phone set up so that when it takes photos, it sends them to file on my desktop. I would like to have a task run once a day that checks the folder and then
Creates a folder on the external drive with the day embedded (e.g. Photos-2012-10-08)
Move all the files from desktop folder to the newly created folder
How do you go about creating a script that the Windows Task Scheduler can use to accomplish that goal?
When in a site apache conf file, is there a way to set the user and group for the CustomLog and ErrorLog?
Right now, these 2 records create the error and access log with root:root permissions, but I would like them to be flewis:admin
CustomLog /var/log/httpd/domain.com-access.log combined
ErrorLog /var/log/httpd/domain.com-error.log
If I change the user:group of the files, when the logs rotate, the new logs are root:root
I'm running a debian system from the command line, how can I get the filenames of all the files in a directory (and sub directories) that have been modified recently, say, in the past five days or so?
I was wondering what are the best ways on local Windows for resuming transfer of files over ssh from remote linux?
I tried SSHSecureShellClient-3.2.9, but I cannot find it works for resuming.
I tried Putty's psftp. It also seems not having the resuming ability.
Thanks and regards!
Do you know of a way to download exe files although the web proxy has a filter in place not to allow this?
I have searched for a feature web site that does automatic file renaming. That should certainly make it possible. The solution would take a URL and then change the extension so that it would look to my proxy as I was downloading a .dat file (or similar).
There are perhaps other solutions to this problem.