Tagged Questions
1
vote
1answer
26 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
69 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 ...
2
votes
2answers
421 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
66 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
71 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
89 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 ...
2
votes
1answer
79 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
83 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
33 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 ...
1
vote
1answer
333 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
320 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
950 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
108 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
113 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
159 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
55 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
116 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
419 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
73 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
3answers
85 views
Linux - Set Subdirectory as Root for a user/group
We currently are only using a root ssh login to our server and are attempting to make a "developer" status user which should only have access to a sub directory.
Is there a way we can set it up so ...
2
votes
1answer
96 views
Setting up a shared folder in Linux
I'm trying to set up a folder in my home directory that will be shared with another user, but I can't get it to work.
This is what I've done: I have tried two different ways using ACL's and ...
1
vote
1answer
28 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
0answers
436 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 ...
3
votes
2answers
593 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:
...
2
votes
5answers
2k 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
352 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: ...
3
votes
2answers
457 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
152 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?
1
vote
3answers
196 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 ...
0
votes
3answers
358 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
222 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
65 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
273 views
Copy only subdirectories exclude other files
Here is the 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 ...
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?
0
votes
7answers
2k 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 ...
2
votes
4answers
386 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 ...
4
votes
1answer
345 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 ...
5
votes
3answers
194 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
197 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 ...
0
votes
1answer
154 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
591 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 ...
2
votes
1answer
455 views
Can't open folders in Linux nerdtree vim
I can't open folders in nerdtree vim. It won't open the folders, and these funky symbols are being displayed:
Does anyone have a clue about how to get this working?
I'm running UTF-8.
2
votes
1answer
178 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 ...
2
votes
2answers
93 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?
-1
votes
1answer
573 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 ...
2
votes
1answer
545 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 ...
1
vote
1answer
244 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: ...
0
votes
1answer
72 views
max folders I can store inside a folder in a linux server
Is there a logical limit as to how many folders I can store inside a single folder in a hosting server (linux)? I`m talking about tens of thousands of folders.
1
vote
1answer
282 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$ ...
1
vote
0answers
134 views
CNC Linux machine hangs when trying to acess a Windows shared folder
The CNC Linux machine hangs at this:
smb -s //NATS:192.168.0.201/FLEXICAM /flexicam/jobs/remote
I have Windows 7 on NATS as 192.168.0.201 and I can ping the other machine.
I think something is ...

