A directory is a structure in the filesystem, which is able to hold other files, including other directories. Some recent movements call them folders. common commands: | Unix/Linux | Dos/Windows | purpose |------------|-------------|-------------------- | cd | cd | change ...
0
votes
1answer
39 views
Compare content of directories in Linux
In Linux, if I have two directories, how I can see the differences of content in these directories?
Now I use this command:
diff <(ls -d dir1/*) <(ls -d dir2/*)
Any other idea?
1
vote
1answer
13 views
utorrent - move all files from subdirectories (downloaded torrents) to parent
Whenever I download torrents, sometimes they have subfolders within the torrent - for example sometimes the file is stored within a folder in the torrent. uTorrent recreates this folder as it is ...
0
votes
3answers
39 views
Using the ls -l with a pipe how can i get it to display the 8th file in the list without the file details
I am looking to display the 8th file name in a directory using ls -l and pipe for example
ls -l | wc -1 would give me the count but what i want to have returned is the 8th file name in the directory ...
1
vote
6answers
120 views
Linux directory full of files with tilde sign(e.g. `~example.txt`), what does it mean and how do I get rid of it?
I have a directory on my linux os(Ubuntu) full of files that start with a tilde sign(e.g. ~example.txt, ~example.py). When I look at my directury using the regular gui I don't see any files there. But ...
1
vote
0answers
11 views
Finding sub-directories inside directories with same name using find and xargs [closed]
Possible Duplicate:
Finding subdirectories inside all directories with the same name
I want to run a command line to achieve following 3 steps:
find all directories named "inc" under a ...
2
votes
4answers
64 views
Finding subdirectories inside all directories with the same name
I want to run a command to:
Find all directories named "inc" under a folder "X".
List all the subdirectories under each "X/.../inc/".
Redirect the output to a file named "list"
I tried various ...
1
vote
1answer
79 views
Windows Move Command: Odd 'Access Denied'
I am trying to move folders from D: to C: but am getting 'Access Denied'. I have ownership and full control over every folder in question and am running as local admin in administrator mode. What's ...
1
vote
1answer
52 views
Windows 7 Music folder: Access is denied
I store my music on a network share and was annoyed that music programs default to using the hidden %userprofile%\Music directory, which is the default location for the magic "My Music" folder.
So I ...
1
vote
1answer
74 views
How can I recursively extract zip files on Windows including deletion?
How can I recursively extract zip files on Windows? Each zip file should be unzipped in a new subdirectory, and the zip file should be deleted afterwards.
Each existing or created directory should be ...
3
votes
1answer
50 views
Why are the sizes of 2 directories different if the data within the directories is identical? They are identical ext4 partitions and disks
root@phoenix:~# ls -ld /backups/external?/var/subsonic/thumbs/110
drwxr-xr-x 2 root root 73728 Mar 4 15:35 /backups/external3/var/subsonic/thumbs/110
drwxr-xr-x 2 root root 69632 Mar 4 15:35 ...
3
votes
1answer
55 views
Directory “Bookmarking” in Linux
Aside from aliasing and links, is there an easy way in Linux to tag commonly used directories and to navigate to a commonly used directory from the terminal.
To be clear the disadvantages I see with ...
1
vote
1answer
66 views
cd Command Linux and Mystery Flags
Platform: CentOS 6.2 Shell:tcsh
I'm playing around with cd for a BASH script, and noticed the wondrous cd - option, but was left with many questions...
Why the cd -? Isn't this redundant with cd ...
1
vote
3answers
72 views
How to remove an infinitely recurring directory tree?
On one of our Windows 2003 file servers somehow someone or something managed to create infinitely recurring directory trees within some of the users' home folders, and they can't be deleted.
You wind ...
0
votes
1answer
98 views
Copy files of certain type in directory and subdirectories preserving structure
Simply put, my question is the same as this but for Windows 7 Ultimate 64-bit.
Note that I want to copy only files of a specific file type, and that I must preserve the directory structure and names. ...
0
votes
1answer
34 views
Giving directory access to only certain users?
I currently have the following directory:
drwxrwsr-x 4 user1 Group1 4.0K Apr 18 18:29 foo
Under Group1 there are 20 users. I want to give user2 and user3 who belong to Group1 access to directory ...
0
votes
2answers
126 views
Why does running “$ sudo chmod -R 664 . ” cause me to get access denied on all affected directories?
I have a project folder which has messy permissions on all files. I've had the bad tendency of setting everything to octal permissions 777 because it solved all non security related issues. Then FTP ...
1
vote
2answers
32 views
“which” Program Requires Shell Refresh to See Newly Installed Programs?
Why does the Linux program which require you to refresh the shell (e.g. type tcsh in the terminal) to see new programs installed in your path??
I was baffled why I couldn't access a program, which ...
0
votes
0answers
56 views
Give user create/read, but revoke delete/overwrite
A little background: I've got a citrix server with about 20 accounts that are used in a round robin fashion by various remote users to access a published application. This application allows users to ...
2
votes
1answer
88 views
What command sequence can I use to delete directories but not their files?
How do I delete directories but not the files inside them? I have tried the following:
rm -di /Users/arthur/Desktop/MyFolder
remove /Users/arthur/Desktop/MyFolder? y
rm: ...
0
votes
1answer
15 views
Caveats of running software inside the Users directory
I have some applications that I'd like to stay with my user forever. I've invested a lot of time in customizing them, and doing it from the start would be rather annoying. To that end, I'm thinking ...
2
votes
1answer
80 views
Directory transfer from Linux -> Windows; 255 Character limit error
I need to copy a very large directory from a linux server to a windows machine; the directory is very large and contains directories that go as deep as having 50+ subdirectories. So as you could ...
1
vote
1answer
138 views
How do I find the size of a directory on a Unix-like command-line?
I know this is a very basic question, but I searched the web and did not find a simple answer. I'm sure it's some kind of two or three letter command, right?
2
votes
2answers
28 views
Linux: Finding the largest directories on web host
I've got a web host (linux hosting) whose disk is almost completely full. How do I list out directories (and their subdirectories) by largest size to figure out where the biggest disk hogs are?
0
votes
1answer
117 views
Keeping users inside their home directory
I have a fresh install of CentOS and I'm currently setting up users. Their home directories reside within /home/username/ and I want to make it so that they cannot ls or cd outside that area when ...
1
vote
1answer
87 views
Move “Documents and Settings” to its own volume
When I set up my old PC with Windows XP Home (SP2) 4 GB were plenty of space.
Some years later with SP3 installed, many many patches later and with several concurrent .net installations that I can`t ...
2
votes
1answer
192 views
Linux `mount --bind` made client's folder disappear?
I tried making a VSFTPD user with access to all of our clients' FTP folders. (the users are all chroot'ed to their home directories, where the public_html folders are).
What I did was create a new ...
2
votes
1answer
59 views
Uses cases for write-only directories?
What are the use cases for write-only directory permissions (user, group or world)?
I've only ever seen world write-only permission, and that was for dropboxes/public folders on ftp servers.
(I guess ...
1
vote
1answer
63 views
Gunzip redirection: “No such file or directory”
When I issue the following command:
gunzip -c /disk1/hadoop/gunzip_tmp/in/part-00006.gz>>/disk1/hadoop/gunzip_tmp/outfile.000
I get the following stderr:
gunzip: ...
2
votes
2answers
43 views
Windows hard links for directories
How can I make hard links for directories in Windows 7?
That means that the 2 (or more?) linked directories refer to the same inode (group of inodes) so they will be exact duplicated and every change ...
1
vote
5answers
199 views
Dir all hard drives with output in DOS batch
How can I list all files (including system and hidden) on all hard drives (not removable drives)?
I think in something like a:
dir -a -h *.* /s > file.txt
but this is for the specific drive ...
2
votes
1answer
278 views
How to override wincmd.ini location?
How to override wincmd.ini location after Total Commander was installed? I can't seem to find a menu item for this setting. Where is this setting stored? Operating system is Windows XP or Windows 7 ...
0
votes
1answer
44 views
Perserve icon with rsync
I was under the impression from here among other research, that rsync was the command used to sync directories and any contents they have.
I have tried the following commands:
rsync -avzr ...
1
vote
0answers
28 views
Save search results
In the Directory Service Find dialog, I'm given the option to save my search, but not save the results. How can I save the results of the search?
Would it be easier to copy the directory, if my ...
1
vote
1answer
89 views
What does directory permission 02777 do?
Found the following PHP code today:
mkdir($directory, 02777);
chmod($directory, 02777);
I understand the PHP, but not first part of those numbers. The 777 part is clear, and if I have understood ...
6
votes
2answers
360 views
Mac OS X not reporting directory sizes correctly?
I'm running Mac OS X Lion 10.7.2.
In Finder, I've noticed that if I duplicate some .app files (in the Applications folder), Finder will show that the duplicate .app file is not the same size as the ...
1
vote
0answers
26 views
Show different directory icons in windows explorer depending on ownership
In the Windows file explorer - Is there a way to give a certain icon to directories which I own?
In Windows xp? In Windows 7?
Henrik
1
vote
1answer
122 views
Unable to access a script from root directory in Linux
I have a script in one of I my root directory:
/root/scripts/script1.sh
I wan't to call that script as another user (james1).
I did the following (as root user):
root@pc83$ CD scripts
root@pc83$ ...
3
votes
1answer
182 views
How to physically reorder files `03.mp3 01.mp3 02.mp3` (`ls -f`) in a directory?
The physical order of the files matters when I copy them onto my USB stick and listen in car mp3 player. Most of my music album folders are unsorted, e.g. ls -f may produce:
03.song3.mp3
01.song1.mp3
...
4
votes
1answer
168 views
Google Chrome - Last save directory
When in Incognito mode, Google Chrome doesn't seem to remember the last download directory for HTML pages. Images/executables/etc work fine, but whenever an HTML page is downloaded via Save Page As, ...
1
vote
0answers
179 views
Create a virtual directory without IIS
My projectgroup is working on a project that has an upload dir. We ofcourse exclude the upload dir from our SVN. This means that we don't share these files. We do share the DB since it's stored on the ...
1
vote
1answer
59 views
GNU/Linux substitute for the Windows-based TreeComp tool
I miss the TreeComp tool from Windows on Linux. Does anybody know about a similar tool for Linux?
I've tried Unison & Unison-gtk (slow and cumbersome), diff (various), meld, mc, rsync (immensely ...
4
votes
1answer
183 views
Linux: which is “most appropriate” directory to place an exectuable for all users?
A bit of newb question.. I usually install packages and don't worry about these things.
But, now I have a one file executable CLI program (Kindlegen from Amazon). I want it to be in the path of all ...
2
votes
1answer
99 views
Tool for getting a complete directory/file listing with complete, detailed information
Once in a while, I take a complete snapshot of my drives with a command like the following.
> for %i in (%drives_hd%) do @dir %i:\/s/a/o>>File_List.txt
This gives detailed information ...
2
votes
0answers
16 views
What's the convention for a directory to store unix domain sockets in?
On Ubuntu or *nix systems is there a convention to store Unix Domain Socket files in a specific directory? I've seen applications store it in /tmp, but I thought /tmp can get periodically cleared, no?
...
0
votes
0answers
24 views
How to tell app to convert files per subdirectory?
I have a question similar to this one : Copy directory structure without copying files, on Mac OS X
Assuming a similarly annoying directory structure (A/B/C/file.end), i want to feed that into a ...
0
votes
1answer
35 views
How to add a directory not on C:\ to the PATH variable
I have recently installed Python in D:\Python32 and added that directory to my PATH variable, but it doesn't seem to work. Does PATH only work with C:\ ?
OS is Win XP Pro 64
1
vote
1answer
44 views
Cant Get Computer directory
This is an unusual problem that I have never faced before.
For some unknown reason when I opened Explorer there was no way for me to see the Computer drive directory. Also when I tried to Save a ...
0
votes
0answers
63 views
How can I use batch commands to set the permissions of a directory to allow domain users full access
Basically, I have a directory that domain users need to have full access to. They use a batch file to open the piece of software that they use for their work, and this piece of software needs full ...
0
votes
5answers
130 views
How to run programs from a different directory in unix
I know this is a very simple question, and that many similar (but more complicated!) questions have been asked- So i wanted to ask this in a very plane manner. Sorry if this voids the rules of conduct ...
2
votes
1answer
64 views
Git keeps forgetting the current directory
I've got a git repository, call it myscripts/. Within myscripts/ are subdirectories perl/, python/, and ruby/. For some reason, when I edit code in one of the subdirectories, Git forgets that the ...