General :: Tar Directory And Then Remove Originals Including That?

Jan 17, 2010

I'm trying to tar a collection of files in a directory called 'my_directory' and remove the originals by using the command:

tar -cvf files.tar my_directory --remove-files

However it is only removing the individual files inside the directory and not the directory itself (which is what I specified in the command). What am I missing here?

View 3 Replies


ADVERTISEMENT

Software :: Remove A Package Including Its Dependencies?

Oct 24, 2009

I recently installed rtorrent on a server in order to download the CentOS 5.4 DVD. I then decided against using this particular server and instead installed it on a different one. When I initially installed rtorrent, I installed two other packages to satisfy rtorrent's dependencies as shown below:

Code:

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
rtorrent i386 0.8.4-2.el5.rf rpmforge 448 k
Installing for dependencies:

[code].....

View 1 Replies View Related

Ubuntu :: Use Sudo Apt-get Autoremove Will Remove All The Mentioned Packages Including Freemat

Aug 21, 2010

From the terminal I got this message: The following packages were automatically installed and are no longer required: libqt4-opengl freemat freemat-help libgfortran3 libsdl-ttf2.0-0 libmikmod2 libqt4-svg libblas3gf libamd2.2.0 libsdl-mixer1.2 libumfpack5.4.0 freemat-data libsmpeg0 Ok, what I really don't understand is that why is it that Freemat, my most important software, is listed as "no longer required"? Of course if I use sudo apt-get autoremove will remove all the mentioned packages including Freemat.

View 2 Replies View Related

CentOS 5 :: Move Contents Of A Directory Recursively Including Hidden?

Mar 9, 2010

I have a directory: /var/www/html/something/

and it's got tons of files and directories, some containing hidden files.

I want to move all the contents of something including hidden files up to the site root at: /var/www/html/

What is the proper command for this?

View 4 Replies View Related

Installation :: Remove Ubuntu Including The Grub Screen And Free The Space Up On The Hard Disk?

Dec 1, 2010

I had Vista on my laptop and then started dual booting with windows.downloaded ubuntu today and installed but just not feeling it. i have looked in add remove programs but its not there. can someone point me in the right direction. How do i remove ubuntu including the grub screen and free the space up on the hard disk because i'm missing 25gb.

View 4 Replies View Related

Ubuntu :: Generate MD5SUM Of Entire Directory Including Sub-directories In Single File?

Apr 23, 2011

As I'm gonna transfer large amount of data folders from one hard drive to another, I wanna make sure that the transfer has not corrupted the data. how could I generate MD5SUMs of entire directory including sub directories, in a single file and later, how could I verify with the data I've just transferred.

View 1 Replies View Related

General :: Remove Directory That Is Actually Used By Another Process?

May 13, 2011

I have udev rules that creates a directory for each usb-media that is plugged into my debian to automount usb-media. This directory where mount-points (the mount-directories) are created is passed through a rdp-connection with rdesktop. On our terminalserver there's a drive Z that shows all mount-points with content of usb-media.When users remove usb-media, udev unmounts usb-media and tries to delete the directory that was used to mount usb-media.If the users hasn't closed explorer showing any subfolder of usb-media, the unmount-command succeeds but the rmdir-command fails because the ressource is "busy or used".My question: how can I force to delete this mountpoint? (rmdir doesn't have force and rm -rf doesn't work)Edit: I should add, that I can't use third-party software or additional packages because the linux-machine is a thin-client with very low disk-space.

View 1 Replies View Related

General :: Rm: Cannot Remove Directory `directotyname'

Apr 18, 2011

i have a hacking attack on my server where some one tried to implement shell and scripts,
also in a directory he placed a symbolic link to my root. i tried to remove it with rm directotyname but it gave me :

> rm directotyname

rm: cannot remove directory `directotyname': Is a directory

how can i remove the symbolic link and make sure it will not happen again ?

View 5 Replies View Related

General :: I/O Error - Cannot Remove Directory As Root

Feb 21, 2010

ubuntu@ubuntu:/usr/lib/locale$ sudo rm -R nl_NL.utf8 rm: cannot remove directory `nl_NL.utf8': Input/output error I'm having problems deleting a seemingly corrupted directory to allow for a reconfiguration of this locale, but the OS doesn't let me do it. Why?

View 2 Replies View Related

General :: Remove Noexec From Temp Directory?

Nov 17, 2009

How do I remove the noexec from the tmp directory, temporarily?

View 3 Replies View Related

General :: Remove Words / Text In Directory?

Feb 24, 2011

I have a folder with many many files. e.g html, docs, excel sheet, script etc.
Now I want to find {using grep command}a certain word in that folder/directory and delete it in all the files and scripts that have it.

For example, I want to delete the word /testing (with the slash) in all files in a directory.

View 14 Replies View Related

General :: Cannot Remove `<directory>': Input/output Error?

Sep 14, 2010

I have a WD external disk, NTFS file system. I mounted it on my Red Hat. While on the external disk, I deleted a directory, which was sent to .Trash-root of that disk.I went to .Trash-root and did rm -rf to completely delete that directory, but I got the following error: cannot remove `<directory>': Input/output errorWhen I do ls -la on that directory that I wish to remove, it shows me it has 0 files inside. But not only I can't remove it, I can't do anything else with it (copy, etc). And I have all the rights on that directory, so this isn't the problem.

View 6 Replies View Related

General :: Cron To Remove All Files Within Directory Except One File?

Jun 28, 2010

I would like to create a cronjob that will delete all files within a directory 1 hours after it is created to the folderI found this cron find /path/to/file/* -ctime +1 -exec rm {} ; but it's deleted all files.I want to make an exception, all file should be deleted except one file (letsay file a.zip)

View 16 Replies View Related

General :: Recursively Remove Subdirectories And Files But Not The First Parent Directory?

Feb 11, 2010

I'm able to use the following to remove the target directory and recursively all of its subdirectories and contents. find '/target/directory/' -type d -name '*' -print0 | xargs -0 rm -rf

However, I do not want the target directory to be removed. How can I remove just the files in the target, the subdirectories, and their contents?

View 4 Replies View Related

General :: Del Command To Remove Files To Directory Instead Of Completely Deleting Them?

Dec 2, 2010

how to write a script so that when I use the 'del' command it removes/sends the files / folders to a I specify for example 'dustbin'

View 1 Replies View Related

General :: Made A File Named * In My Home Directory / Remove It?

Oct 19, 2009

how do i remove it?

View 4 Replies View Related

Ubuntu :: Remove Files From Directory A If Their Name Appears In Directory B?

Jul 7, 2010

I have two questions:How do I remove files from Directory A if their name appears in Directory B?How do I move foo.jpg and bar.jpg from Directory C to Directory D if and only if foo.png and bar.png appear in Directory D?I suspect there's probably a bash one-liner for this, but...I can't come up with it.

View 5 Replies View Related

General :: Remove Index.html File Alone In Every Directory Via Bash Script

Jul 7, 2011

I want to remove the index.html file alone in the every directory via bash script, for example i have 5 directories in the path /var/www/vhost

anish
kumar
linux
question
friend

each directories have index.html file now i want to replace the index.html file alone from the other directory /var/tmp/vhosbak

anish
kumar
linux
question
friend

How we can do this using script?

View 5 Replies View Related

General :: Getting Package Size Including Dependencies?

Feb 10, 2010

I want to find out what is the size of a package including its' dependencies.

PACKAGE_SIZE + ALL_DEPENDENCIES_SIZE = WHAT_I_WANT

View 3 Replies View Related

General :: New Kernel Options To Consider - Including In The Build ?

Jun 27, 2010

I'm building the 2.6.34 kernel and I notice some interesting options, which you may want to consider including in the build, if you are building it:

Code:

Code:

View 3 Replies View Related

General :: What Is The Filename - Including Path - Of A WordPress Database

Jun 17, 2011

I have local Wordpress database that got corrupt as a result of an abrupt power outage (I wasn't even editing it!).

Since the system I am dealing with is pretty static (and old), I just want to restore that database file (or collection of files) from a nightly backup.

But I don't know which files I should be restoring. The WordPress blog in question is installed under a local user account in an old Linux server (FC4).

I checked the wp-content directory, but apparently this is not where the content is:

Any idea which file(s) I should be restoring and what their path is?

View 1 Replies View Related

General :: Including Lzo Compressor Library In Source Code?

Apr 11, 2010

I have downloaded lzo-2.00 package and have installed it linux kernel 2.6 version. Now I want to include the lzo library in the source code of linux.According to the instructions given in the package, I have copied the files (minilzo.c,minilzo.h,lzoconf.h,lzodefs.h)in the source directory(/mm),added minilzo.o to my Makefile and have included(#include minilzo.h) from my program. But when I compile the kernel,I am getting errors.

Errors:

->limits.h:No such file or directory
->assert.h:No such file or directory

View 3 Replies View Related

General :: 'all Files' Switch For Grep - Including 'hidden'?

Jun 14, 2010

If I type 'grep alias .bashrc' a whole load of stuff comes up. However, if I type 'grep alias *' nothing comes up. Is there some switch for including 'hidden' files - like the -a switch for ls?

View 2 Replies View Related

General :: Command Line - SSH To Server Without Including Username In URL On Unix/Mac

Sep 8, 2011

I am trying to ssh into my server from the command-line without including the username in the url. I do not want it to send any username, as it currently takes the active account and sends that as user.ex:

ssh server.com -> (doesn't send default username)

instead of [URL] I would want to input username directly into the server, just like it is done using putty on windows. he wants to be prompted for a username, rather than having to provide one when connecting - but I don't really see the utility in such a thing. - birryree Sep 8 at 17:41

View 3 Replies View Related

General :: Autoremove Deleted Most Of Software Including Desktop On Debian?

Jun 19, 2010

I recently installed virtual box on debian and after it had finished my terminal informed me that I could remove some "unnecessary" software by use of sudo apt-get autoremove. When I did this, some of the icons on the desktop changed and all of the icons in the drop down menu on the bar at the top of the screen also changed to ordinary folder symbols. The theme that I was using also went away. I restarted the computer and it booted back into a shell prompt with no GUI. I tried to get back to the GUI using alt+f7 but it didn't seem to exist

View 1 Replies View Related

General :: 'watch' A Command Including Both Of Single And Double Quote?

Aug 12, 2010

I want to watch a number of processes in "D" status repeatedly with following command:Code:# watch -n 1 'top -b -n 1 | awk '{if ($8 == "D") {print; count++} } END {print count}''but it didn't work. I also tried with double quote. Can I use 'watch' command is this case?PS: I know 'while' and 'sleep' can do the same but it is dirty workaround.

View 2 Replies View Related

General :: Use Wget To Download A Site And ALL Of Its Requirement Documents Including Remote Ones

Aug 10, 2011

I want to do something simular to the following:

wget -e robots=off --no-clobber --no-parent --page-requisites -r --convert-links --restrict-file-names=windows somedomain.com/s/8/7b_arbor_day_foundation_program.html

However, the page I'm downloading has remote content from a domain other than somedomain.com. It was asked of me to download that content too. is this possible with wget?

View 1 Replies View Related

Fedora :: Remove A Directory Which Has Other Directoris In It?

May 10, 2011

I Downloaded tomcat6 core and uncompressed using the tar utility and the result was apache-tomcat-6.0.32.Now want to remove it.When going through the Graphical mode to the Downloads directory and try to delete it it says permission denied.When trying to use the rmdir command as root the message is that the directory is not empty.How to remove a directory which has many files in it from the command line or through the graphical mode to which normally the message you get is permission denied ?

View 6 Replies View Related

Ubuntu :: Remove All Files From Directory Except Some?

Jan 31, 2010

I am still a novice with Ubuntu and I am trying to write a shell script which will clean redundant files. I am stuck with one line where I would need a command which will remove all files from directory except some of them. Can anyone please advice how to add such an exception to the rm command? I have searched some bash shell tutorials, however, no joy. Guess I have overlooked something.

View 9 Replies View Related

Programming :: Remove All Files From A Directory Which Are 24 Hr Old?

Apr 8, 2010

I was preparing a script which will remove all my files from directory which are 24 hour old.I tried some thing like thisfind . ( -name 'log.*' -mtime +1 ) -exec rm {}; but it is throughing error like : missing argument to exec.

View 8 Replies View Related







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