Ubuntu :: Change The Destination For Hidden Files?

Jul 12, 2011

Can I change the destination for hidden files that are in the Home Directory? I'd like to put all the hidden files in my Home directory into a seperate folder inside of Home. (10.04)

View 9 Replies


ADVERTISEMENT

General :: Cp - Mv Destination Name Change

May 26, 2010

When I use the cp or mv command to copy/move files is there a way for me to have the destination file assume the same name of the source file, however add an additional suffix.

For example

Code:

Now what if I wanted this...

Code:

Do I have to type the destination file out manually everytime? or is there a quick way for the cp or mv command to assume the source file name and add the .bak

View 5 Replies View Related

Server :: Change Destination For Httpd Log ?

Feb 23, 2010

I'm running Mandriva 2010.0 as a web server, i had 2 HDD in the erver. i dedicate 1 HDD just for LOGS and system backup (160 GB). i would like to change the log destionation directory from /var/log/httpd (defaults) into /backup/log/httpd how can i do that.? coz i couldn,t find the configuration in the webmin. that log would be useful for webalizer/awffull statistic in several days ahead.

View 3 Replies View Related

Ubuntu Networking :: Using Iptables To Change A Destination Port But Keep The Ip The Same?

Mar 23, 2010

I am playing around with transparent proxies, The current way I am doing things is the program makes a request to a computer on port 80, I use

Code:
iptables -t nat -A OUTPUT -p tcp --destination-port 80 -j REDIRECT --to-port 1234 to redirect to my proxy that I am playing with. the proxy will send out a request to port 81 (as all outbound port 80 are being fed back in to the proxy) so I want to do something like

Code:
iptables -t nat -A OUTPUT -p tcp --destination-port 81 -j DNAT --to-destination xxxx:80 The problem lies with the xxxx part. How do I change the destination port without changing changing the destination ip? Or am I doing this setup completely wrong,

View 2 Replies View Related

Ubuntu :: Open A Terminal And Change The Directory To The Download Destination

Jan 13, 2011

[URL]

This is step 2.2:

Quote:

Open a terminal and change the directory to the download destination.

I'm not entirely sure what that means! I've tried doing the other steps without doing that one and it doesn't seem to work.

View 1 Replies View Related

Ubuntu :: Change Default Save To Destination In Open Office Writer 3.2?

May 23, 2010

In Open Office Writer 3.2, is there any way that I can change the default "save as" "to" location from Documents folder to some other location (e.g., Desktop) in Lucid? I have looked thru everything I can find under tools>options, but I don't see anything that appears relevant.

Any command line deal I could do from terminal that might accomplish this?

This question is in connection with this thread: [URL]

View 2 Replies View Related

Ubuntu :: After Files Deleted Still Shows Up As Full - Shown In Hidden Trash Files

Mar 9, 2011

I have a Kingston 8gb Datatraveler that has been giving me troubles lately. For some reason after I delete files from it it still shows up as full and the files are shown in the hidden trash files. How do I get rid of these files? I can't delete them as they just show back up. Also, I tried to format the drive with gparted and it won't unmount. When I right click and select information, at the bottom it says: Unable to find mount point. Unable to read the contents of the file system. Because of this, some operations may be unavailable.

View 1 Replies View Related

General :: Change /temp Directory From Its Original /dev/hda8 To Destination /dev/hdd5?

Dec 7, 2009

On Debian Standard System I would like to is change /tmp directory from it's original /dev/hda8 to destination /dev/hdd5

Code:

Disk /dev/hda: 6448 MB, 6448619520 bytes
255 heads, 63 sectors/track, 784 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

[code]...

If I change /dev/hda8 to /dev/hdd5 and reboot the startx command fails to run.

View 7 Replies View Related

Ubuntu :: RAR Archive - Extracted Files Not In Destination Folder

Sep 14, 2010

I have a RAR archive, split into 40 sections, containing a folder with a total of 2GB of data. When I Open the Archive using "File Roller 2.30.1.1" and drag the archived folder to destination folder, it says that its uncompressing, but after its uncompressed, there is nothing there, in the destination folder. Where was the 2GB extracted stuff gone?

View 1 Replies View Related

General :: Recursively Cp All Directories, Files And Hidden Files?

May 17, 2010

Ubuntu 10.04

I want to copy all directories, files, and hidden files and hidden directories with one command. I want these items to replace any same items in the target directory.

I have tried several things, such as:

cp -r *
cp -aR *

but I only seem to get visible files and directories. Obviously, I am missing something. (A brain, probably....)

View 9 Replies View Related

General :: Copying Files From Multiple Locations To One Destination

Feb 21, 2011

Suppose I have a tree structure like this:
/home/mahmood/sim/a/b/file1.cpp
/home/mahmood/sim/a/b/file2.h
/home/mahmood/sim/a/c/file3.txt
/home/mahmood/sim/d/file4.txt

How can I copy all of them to /home/mahmood/sim. So that when I run "ls" in /home/mahmood/sim, I see all files:
file1.cpp
file2.h
file3.txt
file4.txt

Can 'cp' search for all file and copy them in another folder?

View 3 Replies View Related

General :: Files Seem To Take Up More Space In Destination After Rsync Copy?

Feb 9, 2010

I have recently purchased an external hard drive in order to backup my home partition. In my PC I have a "1.5T" drive with several partitions on it, containing OSes and the home partition. The home partition is 1.3T according to df, the external drive contains one partition that spans the entire disk,df reports it as 1.4T in size. Both partitions are ext3. When I use rsync to copy files from the home partition to the external partition, the external disk becomes full, despite the destination - supposedly - being larger than the source. I don't understand why copying files from one partition to a slightly bigger partition should need more space than on the source partition. Does anyone know what is happening ?

Details : I created the partition on the external drive with gparted; gparted reported it the already have several gigabytes in used space immediately after the partitions creation - I thought at the time that this must be normal. The home partition contains many files of all sorts, including lots of big audio and video files. If you are wondering, for all my important files this external disk is only secondary backup, as they are also backed up to the "internet".

These are the mount points :

/mnt/tmp/ : home partition, /dev/sdb6
/mnt/external/ : external partition, /dev/sdc1

I used rsync to copy the files, I know there are more efficient ways to do this, but I wanted to use the same command that I will subsequently run to sync the backup.

rsync -av --progress --stats --recursive --perms --links --delete /mnt/tmp/ /mnt/external/

Next I tried adding the --sparse switch, as I was wondering if the problem may come form sparse files. I don't know however if rsync would go back and shrink the sparse file by just adding the switch and executing the command. I also added --one-file-system, for good measure. Here is what I ran next :

rsync -av --progress --stats --sparse --one-file-system --recursive --perms --links --delete /mnt/tmp/ /mnt/external/

I tried an fsck on the home partition :

fsck -f /dev/sdb6

This is the output from the last rsync :

rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: write failed on "abcd.avi": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(302) [receiver=3.0.6]

[code]....

Looking at the destination after a partial copy seems to indicate that the problem is not symbolic links being "expanded". I have not checked the source filesystem for sparse files, nor the destination to see if these files could be larger there, as this does not seem trivial.

Here is some additional info :

$ df /mnt/tmp/
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb6 1415342836 1414173740 369096 100% /mnt/tmp

[code]....

View 2 Replies View Related

General :: Rsync Deleting Files From Destination Directory?

Jul 14, 2011

We have an rsync cron job set up to mirror all the files in a "..dashtdocsdocs" folder to the same folder on another server. It copies all the files over correctly and deletes any files in the "docs" directory that aren't in the sending directory, but it also deletes any files we put in the target directory's parent folder (..dashtdocs or other subfolders like ..dashtdocsimages) even though they've been excluded in the .rsync-filter file.

Here's our current rsync .sh:

/usr/local/bin/rsync --stats -qPzrtpl --delete --password-file=/var/run/.appprodrsync --log-file=/export/home
/webuser/logs/rsync-extranet-log -FF /export/home/ appprodrsync@appprod::dprweb_extranet/ > /export/home/webuser/logs/rsync-extranet-output 2>&1

[code]....

So for example server A has ..dashtdocsdocs and ..dashtdocsimages. Server B has ..dashtdocsdocs but if I manually copy the images folder over to ..dashtdocsimages, the images folder gets deleted from the target directory every time rsync runs.

A: ..dashtdocsdocs
..dashtdocsimages
B: ..dashtdocsdocs
..dashtdocsimages (<-- gets deleted everytime rsync runs)

I'd like to keep just the docs directory synched and update other folders manually, but they keep getting deleted. It looks to me like it's running a delete-excluded option, but that option wasn't used.

View 2 Replies View Related

General :: Renaming Files With Sed - Mv: Missing Destination File Operand After `$i'

Mar 20, 2011

Today i am trying to learn how to use sed. I set up a testing folder with the following files:

AAb.lol
AAc.lol
AAx.lol
test.sh

My goal is to create a script (test.sh) which renames all the files to their original name without AA. I want to end up with this:

b.lol
c.lol
x.lol
test.sh

sed seemed to be the perfect tool so i went ahead and created a script which i think should clear the job.

[Code].........

mv: missing destination file operand after `$i' From that 2nd line i can tell that $NewName is just empty. I also read something about sed needing the -e option for scripting purposes but i just don't understand it.

View 7 Replies View Related

Software :: Copy Files From One Source To Multiple Destination Simultaneously?

Aug 5, 2010

i want to copy one or more files or directory from one drive to multiple drive simultaneously. It like a cloning a disk. But i dont like clone entire disk. i want to copy/clone only certine files or folder. if any one can know how to copy one source to multiple destination simultaneously.

View 3 Replies View Related

Fedora :: Use Rsync To Backup My Music Collection - Add Files To The Destination Drive?

Mar 6, 2010

I'm currently learning to use rsync to backup my music collection. I have a Firefox tab open to the rsync manual page(s) and have been reading man rsync and running experimental rsync operations.I've been doing this for the last 3-4 hours. I've used rsync for this purpose in the past with disastrous results. What was and is once again (due to a month and a half of file pruning) a 9000 file music collection had mysteriously grown to over 25,000 music files and 80GB of data! This was likely due to the fact that I didn't really know what I was doing with rsync and had never spent too much time learning about all the parameters, what their functions are and how they may relate to my goal.Here are the particulars:

* Source drive is a 500GB disk, /media/sata500/music/.

* Destination drive is a 250GB USB disk, /media/FreeAgent/music, connected to the same computer that houses the 500GB disk.

* I want to copy or backup files from /media/sata500/music to /media/FreeAgent/music.

* I do not want to create ANY duplicates of files that exist.

* I only want to add files to the destination drive if they are new on the source drive, like if I rip a CD and add the contents to the source. I want them copied over next time I run rsync.

Here's the rsync command in it's most recently used form, and probably very immature at this point.

Code:

rsync -t -r -vv --stats -i --log-file=/home/glenn/rsync.log /media/sata500/music/* /media/FreeAgent/music/

This appears to have copied all files and folders and I'm satisfied that my goal has been met with some success. To convince myself of this I ran the command and then once it was complete I added 2 new songs putting them in their respective folders on the source drive and ran the same command again. The resulting output was

[code]....

Two files transferred. Exactly what I want.Both folders now house 20,931 files and use 40.6GB. Identical as far as I can tell.What I'm concerned about are time stamps and play count data, etc. Anything that changes the original file. I don't want this data to cause a file to be transferred as I'm afraid that the new file will be created along side the old file of the same name thereby starting this whole music collection expansion thing all over again. I've invested a lot of time and effort to get it pruned down to where there are virtually no duplicates and albums are correct in that they contain the proper songs in the proper order.

View 14 Replies View Related

Ubuntu Multimedia :: Find "hidden" Mp3 Files (incomplete Files Or Just Rubbish)

Jan 26, 2010

I've got a collection of MP3 files, but sometimes I stumble across a double file in Rhythmbox. At first, I thought they were the real files, but after trying to fix the tags (artist names were incorrect or missing) in tag editor, I didn't see any change in the files in Rhythmbox.

This made me search for the album in which the files were (in Rhythmbox). I found out that these incorrectly named files were doubles, but they didn't show in the actual folder.

So, I deduced, They had to be fakes. I threw the doubles in the trash bin, and there it was. They were hidden files (with a dot in front).

How can I find all these hidden files, so I can remove them?

View 3 Replies View Related

Ubuntu :: Cannot Change Directory To A More Than Three Folder Tree Destination Folder From In Terminal?

Sep 18, 2010

I cannot change directory to a more than three folder tree destination folder from ~ in terminal. I've checked everything. No Typos or misspell. The destination folder was recognized by "ls" command but when I went to it, the terminal said, "no such file or directory."

View 7 Replies View Related

Ubuntu Servers :: Change Rsyslogd Destination "on The Fly"?

Oct 20, 2010

I have a web service that needs to change to destination of rsyslogd on the fly. I have tried this in a bash script and it does not work.

pidrsyslogd='pidof -x rsyslogd'
sudo kill $pidrsyslod
rsyslogd -4 -l $LOGFILEURL

I get the error that rsyslogd is "already running"; as soon as I kill it in the second line it restarts.

View 2 Replies View Related

Software :: When Copy Files Between Two Samba Shares From Windows Machine \ Copies The File Through PC To The New Destination?

Apr 17, 2011

I recently replaced my windows fileserver with one running Ubuntu. One thing I've noticed (which is a annoying) is that when I copy files between two samba shares from my windows machine, it copies the file through my PC to the new destination. On windows shares it just did some sort of local copy (ie it took about 2 seconds) rather than 3-4 minutes. Is this the normal behaviour, is there any way around it on Linux

View 5 Replies View Related

Ubuntu :: Show Hidden Files In Desktop?

Feb 18, 2010

There are some hidden files in my desktop..How do i make them visible?

View 2 Replies View Related

Ubuntu :: Find Hidden Folders And Files?

Mar 29, 2010

how could i find a hidden folder so that i can update a file.

View 3 Replies View Related

Ubuntu :: HDD Files Have Disappeared But Aren't Hidden?

Jun 6, 2010

I have an external HDD which i keep all my movies and tv shows and whatnot on. I rebooted my laptop routinely and when the HDD reconnected it still has the same amount of disc space used up but in my movie folder only 221/1186 movies are showing up in nautilus. I opened KDirStat to check and all the movies are still on the HDD nothing has been erased. I have restarted the laptop, restarted the HDD, disconnected/reconnected the HDD, swapped USB ports. I don't think it matters but I have written a .sh script that generates a list of all the folders contents and outputs it to a .txt file. Even though the HDD is only showing 221 files the txt output has all 1186. why 800 files would just not show up in nautilus explorer?

Currently running:
Ubuntu 9.10
Nautilus 1:2.28.10ubuntu3

EDIT: I can still access and play every file that is not showing up by opening them through a media player such as VLC. Also when i Alt+F2 and type the directory and file name they still fill themselves in as normal also.

View 9 Replies View Related

Ubuntu :: Desktop Hidden Files / Show On Them?

Aug 13, 2010

I created an image and then saved it to my desktop as *.jpg

It doesn't show on my desktop anywhere. However, when I click to upload from my desktop to a website or to 'insert' and attachment in my email program and browse to my desktop, it shows that it is on my desktop and all works fine.

I have a feeling the * is the problem in the name and I would happily rename it if I could only get to it from my desktop but I cannot at all.

Any ideas how I can fix this?

View 3 Replies View Related

Ubuntu :: Make Files And Folders Hidden?

Oct 1, 2010

is there any way to make files and folders hidden?

View 3 Replies View Related

Ubuntu :: Mv Command Skips .hidden .files?

Dec 31, 2010

with the mv command or an alternative thereto. It'sreally something I ought to know but I have usually used the mv commandfor a small number of files at a time and, amazingly, never for "hidden" files (with names beginning with .), symbolic links and any lingering hard links.It is my intention to move whole directory trees from one file systemto another, including hidden files.Consider the following directories in /tmp: /tmp/A and /tmp/B, notingtheir contents:

Code:
$ ls -lA /tmp/[AB]
/tmp/A:

[code]....

View 4 Replies View Related

General :: View Hidden Files In Ubuntu 11.04?

Jun 26, 2011

Is there a way to make the system display hidden files in the home folder when you open it? I know you can select "Show Hidden Files" in the view menu but having to do this every time you want to see or access hidden files and folders is annoying!

View 2 Replies View Related

Ubuntu :: Hidden Folders In The Home Folder That Aren't Hidden?

May 6, 2010

just a general weirdness, but some folders that are in my /home folder don't show up. if i check "show hidden folders", they still don't show up. for all terms and purposes, they are simply not there. however, if i search for them through the search tool, or beagle, they show up as being in my /home folder. so, anyone have any idea how this happened, or how i can remedy this?

View 9 Replies View Related

Software :: Rename Hidden Files / Rename All Files With A Leading Decimal Point Recursivley?

Jul 25, 2011

How would I rename all files with a leading decimal point recursivley? I some how got all my music files to have a decimal point.I tried the below and got a " sed argument to long".[CODE]find /media/MUSIC -type f -name "*.wma" | xargs -0 sed -i 's/.(.*)/1/'[CODE]

Another question, can i just use -type f with out -name ? I am sure that all the files got the decimal point added as the first character.

View 14 Replies View Related

Ubuntu :: Keeping Show Hidden Files Unchecked

Jan 5, 2010

I want hidden files to be hidden, so I open the folder that has the hidden files in it and select View, and untick "Show Hidden Files". However, when I access the folder again the box is ticked and the files are showing. How can I get it to stay hidden permanently?

View 5 Replies View Related







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