2
votes
3answers
655 views

Listing tar contents inside directory

this is the script I'm running tar tf some.tar somefolder_insidetar And output it's a list with all folders, files, and SUBDIRECTORY Files, the only thing I need it's just show the contents (folder ...
0
votes
1answer
2k views

Full path while zipping?

I have the following files: ~/Dir1/file1.txt ~/Dir2/file2.txt Then I use the following command: cd ~ zip out.zip /Dir1/file1.txt /Dir2/file2.txt In the out.zip i can see two directories (dir1 ...
4
votes
1answer
424 views

Directory invisible until I cd into it

I have a mysterious directory that doesn't list until I cd into it. Then it does just fine. Then it vanishes again periodically. bash-3.00$ pwd /sde bash-3.00$ ls -la total 16 drwxr-xr-x 4 root ...
1
vote
1answer
432 views

Which are the best file-systems/mount-configuration for each folder on GNU/linux?

One of the good points of Linux is that is easy to customize the partitioning scheme of the disk and put each directory (/home, /var, etc) in different partitions and/or different disk. Then we can ...
1
vote
1answer
214 views

Check difference in file structure

On Linux I've done a rsync syncing supposedly everything in /home to /backup. Both of these disk are the same size, but after the sync du -h shows around 50G difference. I want to know what the 50G ...
1
vote
2answers
2k views

How do I extract a RAR archive in Linux

How can we extract a .rar archive in Linux?
2
votes
1answer
3k views

Rsync difference between two directories to a 3rd directory

How would I go about rsyncing the difference between two directories to a 3rd directory. For example, if I have the command rsync -av --progress --stats /hdd1/ /hdd2/ I would like to copy the ...
0
votes
2answers
667 views

Linux: Create mirror of directory, but ignore deletions

I would like to create a directory public_html/archive that is a mirror of public_html/images, except that deletions in the images directory don't cause corresponding deletions in archive. I was ...
7
votes
3answers
7k views

How to set default permissions for files moved or copied to a directory?

My question is similar to How to set the default file permissions on ALL newly created files in linux - but differs in important ways: I want all files created in (or copied to or moved to) a certain ...
3
votes
2answers
1k views

What is the standard place for static library files on Unix/Ubuntu

I am trying to install a library manually, well actually just put it in a sensible location preferably in my lib path. I have a lib[...].a file and a bunch of headers pertaining to that static ...
2
votes
2answers
377 views

Create directories

Is there an easy way to create all subdirectories of a path in linux ? Something like mkdir /a/b/c/d/e/f executed in / should create directories a,b,c,d,e,f
2
votes
2answers
6k views

How to specify download directory in Linux?

I am new to Linux, running Fedora 13. If installing from source, how do I specify the directory into which I want to download the file? I have a Download directory set up in my home directory but ...
2
votes
1answer
6k views

Removing a very large folder (~40GB) with lots of files efficiently in linux

I'd like to remove a folder with lots of files (namely millions of) efficiently. When I issue rm -rf folder/ it takes hours and I have to kill it. I'm wondering whether there is a magical way of doing ...
2
votes
2answers
9k views

Unix - List all directories and subdirectories, excluding directories without files

I would like to list all the directories and sub directories in and below the current path. Since I only wanted to display directories I came up with the follwing command: find -type d -exec ls -d1 ...
2
votes
2answers
2k views

Rename Linux home folder structure to system language

I have installed the Ubuntu distro first in Portuguese. Then, I decided I wanted the English language. I would like that the default folders like "Desktop" and "Documents" were renamed to this names, ...
4
votes
2answers
2k views

Using “find” to list only directories with no more childs

How can only directories be listed, that do not have another child directory? Imagine a structure like /A /A/AA /A/AB /A/AB/ABB /B /C /C/CC /C/CC/CCC /C/CC/CCC/CCCC I would like to use find to list ...
1
vote
2answers
3k views

Unix recursive directory listing with full pathname of file and filesize

I'm trying list all files (recursively) with their full path name (including name of the file) followed by their size in bytes. I do not need any '.', '..' entries. I dont think anything in the 'ls' ...
1
vote
2answers
706 views

linux: location of folders shared between group

What's the best location for a folder intended to be used as a group storage location? In other words, I want a folder called "examplefolder" belonging to a group named "examplegroup" that can be ...
3
votes
1answer
398 views

Check folder sizes and report combined size for identical named folders in Linux

I have 2 folders that have subfolders (named after users), most subfolders exists in both folders, but not all. Now I want to create a list of space used by each user. I can use the following command ...
1
vote
2answers
2k views

Bash: Find folders with less than x files

How would I go about finding all the folders in a directory than contain less than x number of .flac files?
14
votes
4answers
2k views

Double root folder vs single root folder

On my Linux box, in bash, I have access to a "double root" folder denoted by two forward slashes: tomas:~ $ cd / tomas:/ $ ls bin/ cdrom@ ... tomas:/ $ cd // tomas:// $ ls bin/ cdrom@ ... The ...
2
votes
2answers
75 views

Special unix directories (~)

My university has a system set up where each class has its own directory for the professors to publish and receive files. These directories reside under a directory in /home which happens to be a ...
3
votes
1answer
1k views

Linux-style path on windows or vice versa

I have a directory that is synchronized between my windows and linux installations via dropbox. In Windows Vista, it appears as X:\ drive, in Linux (latest xubuntu), it's mounted as /x/ directory. ...
2
votes
8answers
2k views

Why does “ls -a” hide some existing directory from the root user?

Today I found something really interesting (at least to me) on one of our test servers: I can change into an existing directory from my actual working directory using a relative path, but that very ...
2
votes
5answers
4k views

where did my dropbox folder go in linux?

i've installed dropbox before on Mac and Windows and in those installations it asked me where i wanted my dropbox folder, but when i installed it on ubuntu 64 linux it didn't seem to ask that, and i ...
8
votes
6answers
2k views

Why a folder must be executable?

Permission for files: chmod 664 myFile // rw-rw-r-- And for folders: chmod 774 myFolder // rwxrwxr-- If I only use the "read and write" permission, the folders won't show its contents, why ?
2
votes
1answer
834 views

Diff Folders Without Diffing Files [duplicate]

Possible Duplicate: Linux: Compare Directory Structure Without Comparing Files I am diff-ing two folder trees, but it takes a long time because it is diff-ing the files themselves. I just ...
26
votes
9answers
16k views

Linux: Compare Directory Structure Without Comparing Files

What is the best and simplest way to compare two directory structures without actually comparing the data in files. This works fine: diff -qr dir1 dir2 But it's really slow because it's comparing ...
4
votes
4answers
440 views

deleting folders in linux bash

i'm trying to delete in gnu/linux all folders inside another folder that start with a "." (dot), for that i'm using the find utility, this is what i have: find . -iname ^\..* -exec rm -rf {} \; but ...
1
vote
1answer
885 views

Ubuntu symbolic link the content of a folder

I have two folders such as nonserved/ folder1/ folder2/ and a served folder via Apache media/ js/ css/ img/ In the end, I want to include/append contents of /nonserved to ...
1
vote
2answers
816 views

Finding out why/how a folder is being created

There's a folder on my Linux desktop which shouldn't exist. The first time I saw it, I thought I'd accidentally copied it from somewhere else, so I deleted it. Now it's back again. So it must have ...
6
votes
3answers
6k views

Which are the most important directories to backup on a Linux server?

I'm running an Ubuntu 9.10 Linux server. I'm trying to find a way to backup the machine while it is running and from what I see, this eliminates the disk clone utilities. All of the disk clone stuff I ...
19
votes
2answers
31k views

How do I gunzip to a different destination directory?

How do I gunzip to a destination directory other than the current one? This did not work: gunzip *.gz /putthemhere/
1
vote
2answers
401 views

Prevent rmdir -p from traversing above a certain directory

I hacked together this script to rsync some files over ssh. The --remove-source-files option of rsync seems to remove the files it transfers, which is what I want. However, I also want the directories ...
1
vote
2answers
309 views

restrict directory listing linux

I want to restrict access to certain directories to my ssh users but allow them to read files by known path from there(mostly it's meant to be done by applications). How is that possible? Are there ...
4
votes
1answer
491 views

Deleting another user's directories from my own

I am a non-root user, and have made a directory into which other users in my group can write. The directory is setgid, so files and directories within it have the same group. I can delete files ...
3
votes
4answers
556 views

What folders does Linux have that Mac OS X doesn't?

I was wondering what kind of folders Linux has by default (e.g. system folders such as /var, /tmp etc) that Mac OS X doesn't? I'm pretty sure that some of these folders exist in Mac OS X but are ...
2
votes
2answers
430 views

damn small linux - Installing usb & what do these disks mean?

I am configuring my installation of Damn Small Linux and I have few questions. I need to access my pendrive. What drivers do I need? What is the purpose of the /opt, /dev and /mnt folders?
6
votes
2answers
1k views

tar a directory

I'm trying to tar my website files that are on my test server to be able to upload them to 'real' server. tar -cf mysite.tar /var/www It creates archive fine... but when I open that archive it has ...
6
votes
4answers
25k views

How to tar directory and then remove originals including the directory?

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 ...
3
votes
8answers
372 views

Why not ~/dls instead of ~/Downloads?

Most folder names in the *nix world are lower case. It makes them easier to type in my opinion. However, everything in my home-dir is capitalized! Why is this? Is it possible to change them? The ...
3
votes
3answers
2k views

What is the intended purpose of top-level linux/unix directories and what should they contain? [duplicate]

Possible Duplicate: Linux file system As the title says, what is the intended purpose of top-level linux/unix directories and what should they contain? What is the meaning of their names? ...
1
vote
3answers
3k views

Where on a Linux file system should someone put media intended to be accessible by all user accounts?

If I have photos, mp3s, books and other miscellaneous stuff that I want all users to able to access from a common directory, where on a Linux file system should I put that directory? In /usr/share, or ...
0
votes
2answers
3k views

How to replicate the directory structure to a remote Linux server

I want to replicate a complex directory structure from one Linux server to another remote server start at a certain sub-directory. I don't want the contents of the files, I just want to preserve the ...
1
vote
5answers
114 views

how to navigate directories with heaps of files

My Linux file system has tens of thousands of files per directory. Viewing a list of all the files takes a few minutes for my system to calculate, which is too slow. But I am not sure what files are ...
4
votes
11answers
6k views

Compare huge directory trees

I am looking for a free tool to make a snapshot of the filesystem structure (listing of files and directories, their size & timestamps) and can compare it to another one made later. treecomp ...
0
votes
2answers
300 views

How do I access a directory by timestamp?

I have a set of directories on my linux box that have names like this: bulk-load_20090918-162100 The latter part is a timestamp. Is there any way that I can access the directory with the greatest ...