1
vote
0answers
55 views

Linux directory becoming a clear plain text file

Did anyone encounter this before? I have a directory called opt which is working previously. Last few days ago, i tried to expand LVM size by using off-line expand. It show success but with some error ...
1
vote
1answer
140 views

Use rmdir to delete lots of empty folders within a folder

I have a folder which should at any time have less than 500k folders. These folders are created dynamically, and when the files (images) inside them are deleted by some script, the folder itself ...
0
votes
0answers
20 views

How can I keep Red Hat Linux folders open?

I am using Red Hat Linux (2.6.18 from uname -r) on a 64-bit machine. I usually keep 2 particular folders open, so I can see and manipulate their files with GUI actions. If some period of time has ...
0
votes
2answers
72 views

linux rename home folders and lost configuration

I've changed my Home folders name, like, "Documents" I changed to "docs", "Downloads" to "downloads" and "Pictures" to "img".. but now my Desktop is not well configured, for example, my ...
0
votes
2answers
218 views

create file in directory without x permission set on directory : How?

From this page, http://content.hccfl.edu/pollock/aunix1/filepermissions.htm, I understand that I need the +w bit set in a directory to create a new file and +x bit to cd into it/access its inode. So ...
4
votes
2answers
5k views

How do I move files out of nested subdirectories into another folder in ubuntu? (Trying to strip off many subfolders)

How do I move files and not directories into another folder/parent folder? I have a folder structure that is extremely ugly, with some .mp3 files buried 6 levels deep in a sub-folder. I want to ...
-2
votes
1answer
97 views

Bash- how to select a directory based on the number of files it contains

I want to select all the subdirectories in a given folder that have a certain number (in this case, 75) files within them. Then I want to take the name of each of these subdirectories and assign it a ...
0
votes
2answers
71 views

Make directories for each file placed in main directory [duplicate]

I want to place a list of files into individual directories I create from each filename. So given the files in the root directory: Movie1.avi movie2.m4v movie3.mp4 I want to mkdir Movie1, movie2, ...
0
votes
3answers
376 views

Copy top level folder structure without copying files in linux

I would like to copy a folder structure (without the files), but only the top level folders. That is, with my source: folder a * folder 1 * folder 2 * folder X folder b * folder 3 folder c I ...
-1
votes
1answer
74 views

How to copy from couple folders back to the current directory?

I just came to an interesting question in Linux. I want to find a shortcut for copying from multiple folder back in the path to the current path. For example: A/B/C/D/E> cp ../../../example.txt . ...
0
votes
1answer
59 views

Gnome: How does one change directory exploration settings?

I am using the GUI (yes, I make heavy use of the terminal for directory traversal too) to look through some files and was wondering where do I go to change the following: Whenever I click on a ...
3
votes
3answers
51 views

trying to change permissions on files in a directory to read only

I have a directory which currently hase the following permissions drwxrwsrwx I need to restrict permissions on the files under the directory to read only but when I use chmod 644 I get permission ...
1
vote
2answers
504 views

Gunzip directory of files and pipe output Linux

I'd like to gunzip a directory full of compressed files and pipe the output (preserving the original files) to a different directory. I need the original names to stay the same. So... gunzip -c *.gz ...
0
votes
2answers
2k views

cannot create directory. permission denied. but i have permission

i'm fairly new to linux, and ran ubuntu the other day. it is running dual boot with windwos 8. now, the problem is, even though i log in as root and give a specific folder ALL PERMISSIONS (#chmod 777 ...
5
votes
1answer
301 views

Linux shows several folders with the exact same name

I recently used a mac to copy several files and folders to a USB drive (ext4 through ExtFS), and now in Linux (Xbian) two folders in the root of the drive are shown four times. The output of "ls ...
-1
votes
1answer
582 views

how does one change home directory in ubuntu 13.04

I tried the solution given here however, it did not help i am running linux ubuntu from a usb flash drive, and have a usable hard drive in the computer i am constantly working on, i want the home ...
0
votes
2answers
377 views

show linux disk space use by directory

There are times I'm over or near my quota on my shared hosting service. It can often be a chore to track down where large files are. I once found a 500mb zip file in a deeply nested directory. I'm ...
1
vote
1answer
158 views

How to change default directory when adding new attachment in Thunderbird

Let's say I start a new mail, and I add attachment. By default Thunderbird shows Documents sub-directory from my home directory. But this does not suit me and I would like to change this default ...
2
votes
1answer
208 views

Why does NTFS disallow the use of trailing periods in directory names? [closed]

On Linux, I can have a folder named temp.. If I try to do a mkdir temp. on a Windows machine, the trailing period is truncated. If I try to sync a directory from Linux to Windows that has a trailing ...
8
votes
3answers
4k views

How do I change the Dropbox directory on a headless GNU/Linux server?

I have installed Dropbox 2.0.0 via command line on my home server (Ubuntu Server 12.04) to use for off-site automated backups, but I can't change the directory that the Dropbox daemon keeps synced. ...
-1
votes
2answers
130 views

Change permission on a string of directories

I have a string of directories and i want to change the permission on all of these directories to 775 (rwxrwxr-x) with a command like chmod. The problem is that the string is editable so it can be ...
1
vote
2answers
209 views

Why the directories-files do not have the 777 privileges when I gave that on the parent directory?

There is a directory named Joomla inside /opt/lampp/htdocs directory. As I created the directory, first thing I did was to change its mode as : [root@Feddy htdocs]# chmod 777 Joomla Then I unzipped ...
2
votes
1answer
336 views

Remote home directory and performance

In a Linux network environment, is it a wise choice to put the user's home directory on a remote hard disk? The advantage would be that a user can login on any machine and have its own home ...
3
votes
1answer
201 views

UNIX make directory that appears to have contents of other directories

If I have 2 directories, a and b can anyone suggest a convenient method of creating a directory that appears to have the contents of both a and b without copying the files ? At the moment what I have ...
1
vote
2answers
741 views

Delete directory and subdirectory - Operation not permitted

There is a folder called Trash-1000 and i want to delete it. There are some folders in it which cannot be deleted (do not even know how they were created). Looks like: ...
0
votes
2answers
125 views

linux map folders by size to compare disk usage

I have AWS linux instance, Currently there are many folders in the instance. I would like to map all the folders and their size, so i could come back in 1 month and check which folder occupy high ...
4
votes
1answer
5k views

How can I use tar command to group files without compression?

I have a very large folder of 120,000+ files. and I need to move them to another location on my same machine (same partition). I'd like to use the tar command to group them up as a single unit and ...
2
votes
1answer
1k views

Linux FTP User Directory Access Restriction?

I'm setting up the SFTP with different users. I simply need to strict some users to be given stricted Folder Access. General users to access the whole Main FTP Directory normally: ...
2
votes
1answer
9k views

Where does Linux Mint keep the files for default desktop wallpapers?

Under Cinnamon Settings > Backgrounds, there are a lot of images I would like to move to my windows partition to use as wallpapers. Where exactly are these files located?
0
votes
1answer
440 views

Crontab is using some sort of hidden cache?

I used to have a crontab that ran like this * * * * * /usr/bin/php /var/www/vhosts/default/htdocs/agent/time_keeper.php > /dev/null 2>&1 It worked fine. Now I moved that php script to a ...
1
vote
3answers
341 views

Merge two Foldes (Backups from my Files) on Windows 7 or Ubuntu 12.04

I have yearly backups of all my files on the harddrive. The problem is that the Backup from 2007 contains files which don't exist in 2008. And I need both Versions of the Files, when they are ...
0
votes
2answers
307 views

ubuntu home folder permission

I have implemented openLDAP logging into my test server, each user has its own folder, which should be private for him. Now I have testUser1, testUser2 and testUser3, that means my /home/ folder ...
1
vote
1answer
80 views

How do I calculate file size ignoring PDFs (or other binary files)?

I would like to calculate the file size of a directory tree, but I want to ignore all PDFs and images as well. Essentially, I'm trying to figure out what the size of the text-only files are. How can ...
1
vote
1answer
178 views

Can I get iPhone-like folders on Linux?

I'm using Ubuntu, and my desktop is getting very messy. Most people organize things in folders, but I don't like opening up a whole window to access my stuff. I like the way iPods (and OS X Lion's ...
4
votes
2answers
1k views

How to move multiple directories, but exclude files in current path with similar name?

Say I have a directory that contains the following: dir1/ dir2/ dir3/ ... dir50/ dir1.txt dir2.txt dir3.txt ... dir50.txt I have been using mv dir* /someotherpath/, then move the *.txt files back. ...
2
votes
2answers
83 views

Location of installation files in Windows vs Linux

In Windows I can install software, say MySQL. Its installation files are in a unique folder for that application. But in Linux, if we install it, its installation files are in different folders, such ...
1
vote
1answer
35 views

Command to get to bottom of tree

Is there a Linux command that will return the file path of the bottom most dir. I've tried the following commands: find ...
0
votes
1answer
721 views

How to Change Folder TimeStamp Recursively in Windows/Mac/Linux/Unix

FOR WINDOWS: I need to change the TOP FOLDER timestamp to reflect the latest file or the latest sub-folder added. Note, I do not want to change the sub-folder's timestamp properties in which no newer ...
5
votes
2answers
5k views

How can I do a recursive chmod only on directories?

I want to change permissions on a tree on Centos 4 to add execute permissions for all directories recursively from a directory. If I use normal chmod, files other than directories are also modified: ...
3
votes
5answers
9k views

How to find over 1GB folders and execute another command in linux terminal?

I want to find the folders which sizes are over 1GB and then if they are over then i want to erase them. I found some commands like find /some/path -type d -size +1G -exec ls {} \; or du -h ...
1
vote
2answers
616 views

How to browse through directories in a tree like structure in linux terminal?

Is there a program to browse through directories in a tree like structure in the linux terminal? Example: Suppose I was at /home/username/mysite and typed command_I_am_looking_for then I would get: ...
5
votes
2answers
1k views

Pretty print folder structure using linux terminal?

How can you pretty print a directory structure with all subdirectories to the deepest level in the linux terminal(ubuntu)? This is an example of such a pretty print output for a mysite folder: mysite ...
2
votes
1answer
319 views

Directory of dereferenced symbolic link?

In shell script, how can I dereference a symbolic link and get the directory of the file it links to?
2
votes
3answers
593 views

linux: accessing thousands of files in hash of directories

I would like to know what is the most efficient way of concurrently accessing thousands of files of a similar size in a modern Linux cluster of computers. I am carrying an indexing operation in each ...
1
vote
3answers
1k views

BASH: Need if statement to run a task only if number of files in the directory are greater than 1

I want to write a script, but I want an if statement so it will run only if the number of files in the directory are greater than 1. Is this possible?
0
votes
1answer
306 views

Sabnzbd Installed on Linux NAS

I installed SABnzbd on a linux formatted NAS. Now the directory it downloads to is mapped differently on the NAS itself, because the path that SABnzbd knows about starts in it's own folder. If this ...
0
votes
1answer
75 views

already opened files in a directory can still be saved after the directory is deleted - Linux

This is annoying feature of Linux. If I opened a file in a directory and then delete the directory, and copy another directory having the same name to the same place, I can still edit and save the ...
1
vote
2answers
527 views

How do I copy only subdirectories but exclude other files in Linux?

Here is my directory structure: /home/folders/test (some directories) and files test.xml test1.xml test.js images (directory) /home/folders/test/images/( some directories ) and files I have to ...
0
votes
1answer
1k 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
7answers
4k 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 ...