CentOS 5 :: Remove Temporary Files Through Command Line?
Jan 16, 2010
Where exactly are the temporary files stored, in /tmp or /var/tmp. How can i remove temporary files through command line? What is the difference between these two directories?
View 2 Replies
ADVERTISEMENT
Apr 11, 2010
me with proper syntax / command to remove temporary files in linux
View 9 Replies
View Related
Nov 9, 2010
However, the ffmpeg command generates a temporary file blahblah.mpg.tmp of about 1GB per hour of transcoded video.My issue is that I can't seem to delete these files automatically from any bash script.Now from the command line, I can cd to the directory and just rm -f *.tmp and they get deleted. However, from my script, that same command doesn't remove those files. I thought maybe the file was in use, so I put a sleep command in for like an hour before the delete happens, but it still fails. I also put rm -f /mnt/mythtv/*.tmp in a root cronjob and it still doesn't delete the files.
If I just rm *.tmp I do get a prompt about "Are you sure you want to delete this write protected file?". But the -f switch seems to work fine as a normal user from the command line and just delete them.Does anyone have an idea how to troubleshoot this problem? The particular filesystem that the tmp files get generated on is on it's own xfs partition mounted as /mnt/mythtv.
View 8 Replies
View Related
Feb 17, 2010
Yesterday i finally got around to installing my graphics card (NVIDIA GeForce 8400M CS) on fedora 12 by using the command yum install kmod-nvidia the terminal then told me that it installed correctly so i rebooted my system. Now when i boot up into fedora, it loads and when the sign in window is about to appear instead my screen shows random colors all over the place. I am hoping someone can tell me how to remove this via the command line prior to actually starting fedora.
View 2 Replies
View Related
May 27, 2011
I've just added an application to load on startup in gnome.At first gnome loads properly,but after few seconds that application starts automatically and I can see its icon on taskbar , then gnome freezes and I can't do anything in gui.
How I can remove that application from starup of gnome using command line?
View 1 Replies
View Related
Feb 15, 2011
Is there any way to quickly remove multiple related packages from the command line instead of having to enter the name of every single one? I am trying to remove OpenOffice from my server running 10.04. It would work nicely if I could get a list of packages without line breaks, such as the list displayed by aptitude when upgrading. That way I could just paste the package list into the terminal. However, "aptitude search 'openoffice'" dumps a long list on many lines that cannot be used that way.
View 3 Replies
View Related
Jul 21, 2010
My site was recently hacked and a line of <JAVASCRIPT> was inserted into all my php files. Is there a way to pull just that one line out of all the php files on the server? I was thinking of using a grep -iR <CODE> *.php then piping thru sed
View 1 Replies
View Related
Jan 23, 2010
A Javascript has crept into all my hmtl, php files in my shared hosting account. I have SSH access.How can I use sed to remove that line from all files in a directory recursively ?sed doesnt change the original file.And I need to specify *.php and *.html
View 4 Replies
View Related
Feb 20, 2011
Is there a method at the command line to copy files from one location to another and retain the source files group and user?I'm migrating some MySQL files from one machine to another.I want to back-up the original files in the directory presently. They have owner:group of mysql, some have owner:group root:mysql and so on. To copy them under cli or Nautilus everything changes to root for I execute sudo cp or gksudo nautilus and copy via gui.
Since it is MySQL data I could simply do a dump of the database and restore it on the other machine. But there's about 20 db's and I want to do this via a copy for it will be faster - at least that is what I think.
View 5 Replies
View Related
May 23, 2011
Is there a cc cleaner equivalent for linux to clear out tmp, internet files, etc.?
View 9 Replies
View Related
Jul 14, 2010
Anyone know why my fresh installation of centOS server is so slow? Seems like it takes over a minute to execute a command, im not doing anything complicated either. Secondly, how come at times when I type reboot the machine starts to beep, one long loud annoying beep.
View 5 Replies
View Related
Dec 28, 2010
how to download or upload files to a Debian machine using only the command line. I well aware of how to do it in GNOME, but seeing as how this is for a web server, I won't be using GNOME. I have a zip file on my personal machine that contains the website files that need to go on the Debian machine that is to be the web server, but I have no how to get it to that Debian machine without GNOME.
View 14 Replies
View Related
May 25, 2010
How do I find files in opensuse 11.2 without using the command line. I see in dolphin "nepomuksearch", but it doesn't work. Even in the command line you cannot whereis a file like Monday, Monday.mp3. whereis also seems to be case sensitive.
View 5 Replies
View Related
Aug 29, 2010
For example, see this page Advanced Linux Programming.
I want to download all the pdf files linked from this page. Is there a simple commandline way of doing it?
Something on the lines of
download [URL]
View 2 Replies
View Related
Oct 21, 2010
I'm looking for a solution for the following simple problem. I have two files, fileA and fileB. Each file contains only one word per line, and they contain exactly the same number of lines. I would like to create a new file called fileAB, where the i-th line contains the i-th line of fileA, a Tab separator character, and then the i-th line of fileB. I know how to do it in Python or other scripting languages, but it would be nice to have a bash one-liner for that. Is it possible to do this in bash or any other Unix shell, using the tools that are usually available on the command line (e.g., sed, awk and such)?
View 1 Replies
View Related
Sep 15, 2010
rying to find a way to generate a PDF file from a text file in a command mode (X is not installed). Is there a simple way to do that?I don't need anything fancy - no special formatting and no images to include, just simple text converted to a PDF format
View 3 Replies
View Related
Oct 8, 2010
I had a great system going with a bash script to update all of my mp3 files' genre tags. Now that my music collection is ogg, id3v2 doesn't work.
Can anyone recommend a command line tool to edit tags for ogg files please?
View 6 Replies
View Related
Dec 14, 2010
I'm looking for a way to copy files with a certain file extension over to another folder. For exampleSource Folder: /home/user/downloadsFile Type: *.epubDestination Folder: /home/user/epubs/The downloads folder has several folders that may go as deep as 2 or 3 levels.I tried this but it didn't seem to work (and I'm not really sure what to do to modify it to get it to work).Quote:find . -maxdepth 1 -type f -exec grep -q "pattern" '{}' ';' -exec cp '{}' /path/to/destination
View 4 Replies
View Related
Jan 4, 2011
I have a laptop with Ubuntu 10.04 which appears to be completely wrecked. Even in recovery mode I can't get any GUI. The only access I can get is via command line, which with my limited knowledge of cd and ls commands shows me that the home directory is OK and all the data files present.
How can I get the data files off this machine, eg by copying them to a usb stick, or maybe by copying them to the Windows partition (which still works OK)?
View 9 Replies
View Related
Mar 26, 2010
How to install software on centos from command line?
View 8 Replies
View Related
Dec 16, 2009
I'm using CentOS 5.4 x86_64 on my Dell Inspiron 1440. Is there any way I can get information about the battery(charge) through command line without X server.
View 1 Replies
View Related
Jul 14, 2010
I'm using several 3rd party repos for Centos - RPMforge, ATrpms, EPEL, REMI. Is there some way I can set the priorities for these repos in a bash script, using a YUM command? I cannot find anything in the YUM man page, or the yum-utils package.
Smart PM has a command to set channel priorities from the command line. Wondered if I can do the same for YUM repos?
View 2 Replies
View Related
Jul 27, 2010
Just got the new Dual Quad Server and after the installation was completed, It was the destkop edition... Can I get a reference on how to install the "Command Line Only" version of CentOS, OR Can I run the desktop edition and still be able to host VPS's and Web Servers, etc...
View 3 Replies
View Related
Sep 8, 2010
As I recent convert from Ubuntu to Centos, I have a lot to learn. In Ubuntu, I can plug in a memory stick, run the menu option: System/Adminstration/Partition Manager, highlight the memory stick and choose "Format: Encrypt"
In Centos, my memory stick is /dev/sdc1, how do I, using command line: format it as /ext3, encrypt it using cryptsetup, and set a password?
View 3 Replies
View Related
May 3, 2011
It's a new install on a laptop, it looks like it installs fine, however after a boot I get login & password prompt and command line. I did choose GNOME desktop during the install.I know I will have problems to get 1080p resolution with my Intel integrated card Ironlake but at least I expect to have GNOME with min resolution 800x600.
View 5 Replies
View Related
Apr 30, 2009
I have a bunch of mislabeled files among other things but I'll start with this first. as using the command line to fix this issue.
View 5 Replies
View Related
Oct 17, 2009
I have just accidently deleted /usr/lib as root, how do I restore it from the trash can from command line? Seeing as how no programs will now run. I can't seem to find /root/.Trash, no such folder seems to exist ,or did I just royally screw myself?
Edit:
First off where is the Trash folder for root in Fedora 11 I have googled and looked everywhere I can't get a straight answer. It is not in /root/.Trash for one.
View 2 Replies
View Related
May 2, 2010
I have huge text files with two fields, the first is a string the second is an integer. The files are sorted by the first field. What I'd like to get in the output is one line per unique string and the sum of the numbers for the identical strings. Some strings appear only once while other appear multiple times. Given the sample data below, for the string glehnia I'd like to get 10+22=32 in the result. how to do this either with gnuwin32 command line tools or in linux shell?
[Code]...
View 2 Replies
View Related
Feb 21, 2011
I have a large amount of log files that I need to remove sensitive data from. The sensitive data is provided to me in a text file and is prone to change. I had hoped to do the equivalent of this:
[Code]....
The commented out egrep works fine, the sed doesn't. Am I right to use sed for this? Or is there a more apt route to take?
View 2 Replies
View Related
Jun 20, 2011
At the linux command line, I'd like to compress all .pdf files in a directory, any of it's subdirectories and so on - but only .pdf files. I'm struggling to figure out the syntax
View 2 Replies
View Related