2
votes
3answers
483 views

Unix Directory Hierarchy Permissions

Suppose I have a directory with no access for anyone except for root. Am I guaranteed that everything in the directory is inaccessible to everyone but root? In other words, are file permissions ...
0
votes
1answer
568 views

UNIX: Find all directories that match string and copy a file there

I was wondering how to file all directories that match a string and then if found, copy a file from root to that directory.
10
votes
5answers
10k views

.tar files without directory structure

I'm .taring some files with the path example/super_user/Output.*. The resulting .tar looks like this: + example + super_user - Output.zip - Output.xml - Output.txt ...
8
votes
2answers
2k views

Unix: Slash after directory names or not

What is the difference between the following commands? mv foo bar mv foo/ bar/ mv foo/ bar mv foo bar/ Or is there no difference? Or does it depend on the command being used? Think for example I ...
6
votes
3answers
5k views

List all unique extensions for files contained in a directory

I would like to see all the unique extension of files contained in a certain directory. What is the command to do that in bash? One could use find . -type f to get all the files in the current ...
7
votes
3answers
67k views

How to change file permissions for a directory in one command

How can I change all the file permissions of a directory in one command in Unix?
19
votes
2answers
32k 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/
3
votes
8answers
373 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? ...