A component of a Unix filesystem which contains other items, to organise the filesystem

learn more… | top users | synonyms (3)

163
votes
5answers
832k views

Change folder permissions and ownership

I would like the user to have full rights on this folder (as well as all sub-directories and files in it): ~/.blabla currently owned by root. I have found numerous posts (in this forum and ...
115
votes
1answer
78k views

Differences between /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin [duplicate]

I'm running an Ubuntu Server 13.04, but I see the same on a 12.04: I have six directories with command files. These are: /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin What are the ...
70
votes
3answers
38k views

Dropbox error - 'echo 100000 | sudo tee / proc/sys/fs/inotify/max_user_watches'

Dropbox gives me an error that mentions echo tee 100000 but then it disappears. How to fix or remove msg?
56
votes
5answers
79k views

How to encrypt individual folders?

Let's say that I have a folder, within my Documents folder, that has files I want no one to access without a password. Is there a way to lock down that folder so that it's password protected / ...
46
votes
3answers
92k views

mv: Directory not empty

I want to move content of a directory within another directory with the same folders. Here's an example: I have ./backup wich have the directories base and test. Now I want to move these directories ...
42
votes
8answers
40k views

Is there a tool to encrypt a file or directory?

What's the most popular way to encrypt individual files or folders?
41
votes
3answers
263k views

find a file using the terminal

I am trying to find a directory, using the terminal and I am not sure where it is. I mean that i used the wget command to obtain the file and used it for installation and now i am not able to find ...
40
votes
4answers
54k views

Why are hard links not allowed for directories?

I am using Ubuntu 12.04 and I am pretty new Linux world. I am really amazed when I try to create hard link for any directory and fail. I can create hard links for files inside file system boundary. I ...
40
votes
4answers
22k views

Difference between 'dir' and 'ls' terminal commands?

I've been trying to find the difference between using the dir and ls commands in terminal. I know ls is the traditional unix method of viewing the files in a directory, and that dir is the windows ...
37
votes
6answers
7k views

How can I hide directories without changing their names?

The OCD in me wants directories I do not like the name of to be hidden since I do not interact with them directly. How can I hide directories without using the dot notation?
36
votes
5answers
43k views

How to customize (add/remove folders/directories) the “Places” menu of Ubuntu 13.04 “Files” application?

I can't seem to find a way to customize (add/remove folders/directories) the "Places" menu in the most recent "Files" application of Ubuntu 13.04. The procedures used with "Nautilus" in the previous ...
36
votes
3answers
35k views

Use of /opt and /usr/local directories in the context of a PC

What is the difference between /opt and /usr/local directories and what kind of programs should be installed to them? I referred to Linux File-system Hierarchy but the explanation is not that clear. ...
31
votes
5answers
20k views

How can I add a bookmark in my nautilus folder explorer

In Ubuntu 11 I just dragged the folder there. This seems to be not possible on my new Samsung ultrabook with Ubuntu 12.04 I've tried Ctrl+D and using the top menu but nothing happens and no error ...
27
votes
6answers
70k views

Move home folder to second drive

I have 2 HDD drives in my computer. At the moment second drive is mounted as /media/storage. How can I move my user data from /home to /media/storage/home? Can I just move the data over there and ...
25
votes
5answers
172k views

How to Search for Files Recursively into Subdirectories

I am trying to look for all XML files in a particular directory and all sub-directories (recursively) inside it. ls -R *.xml is only listing files in the current directory. I am quite sure, the ...
24
votes
4answers
54k views

How to open a folder (with GUI) from terminal?

I want to place a link/shortcut/launcher in my unity panel (ubuntu 12.10). I followed this tutorial on handytutorial.com to create a custom launcher and drag it to the panel. I just need to know ...
24
votes
3answers
24k views

How do I delete all empty directories in a directory from the command line?

Say I have a directory named foo/. This folder includes subdirectories. How can I delete all the empty directories in one command?
23
votes
2answers
22k views

How can I assign custom icons to folders?

How do I assign custom icons to folders, as well as the default folders Desktop, Downloads, Music, etc.? I know that one way is to assign the properties of folders, but I want to assign icons in the ...
22
votes
4answers
2k views

Where should I keep my personal files while keeping the pathname short?

I was a Windows user and am new in Linux environment. I just installed Ubuntu two days ago and I am confused about the directories such as lib, etc, var, tmp, mnt, etc. I've a few questions. What is ...
18
votes
1answer
7k views

How many files I can have on a single directory?

This question is related to this one. I work with animation, which generates a LOT of files (+/- 1,000,000) typically stored on a single directory. On Mac Os X, some bugs came up with more than ...
17
votes
4answers
14k views

Is there a standard place for placing custom Linux scripts?

I am developing a set of scripts, which I want to be present for all users, when I set up a server. But I don't want them in the standard locations like /usr[/local]/[bin],[sbin] etc. Is there some ...
16
votes
10answers
95k views

Can't access Ubuntu's shared folders from Windows 7

In Ubuntu Maverick, I've shared some folders using the Nautilus "Sharing Options" GUI. I can see them from Windows 7, but when I try to access them (from Windows) it asks for a username and ...
15
votes
2answers
375 views

Ubuntu keeps creating dummy directories

Whenever I boot into Ubuntu, something (frankly, I'm not sure which program does that) creates a bunch of directories, namely ~/Music, ~/Videos, ~/Documents, and ~/Audiobooks. I know it's possible ...
14
votes
2answers
3k views

Why is my desktop the same as home folder?

My desktop (not the /home/user/Desktop folder) shows the contents of my /home/user folder. I don't know how I have done it and can I have some help on undoing it? The /home/user/Desktop folder just ...
14
votes
2answers
760 views

How to make my system delete all the files in a certain directory older than a certain time while keeping the directory structure intact?

I have a directory on my machine, think of it as my own sort of tmp directory, but it's in my ~ directory. And I want to make it so that my system every 3 hours deletes all the files in (though ...
14
votes
2answers
35k views

How do I give www-data user to a folder in my home folder?

I have a folder: /home/myuser/folderA I want to give www-data user write access to the above, while 'myuser' continues to have normal access (as it is myuser's home folder anyway). Which commands do ...
14
votes
3answers
686 views

how do I make nautilus to automatically suggest the folder 'Documents' for pdf files?

In Ubuntu 11.10, how can I set up nautilus so that when I select "Save as..." on Evince or some other PDF viewer, for a PDF I downloaded with the browser, it automatically suggests the folder ...
14
votes
3answers
2k views

Two accounts on same computer how to make a share folder for both?

I need a shared folder. I and my wife need to exchange files on same computer. How to do that?
13
votes
5answers
4k views

Is there a way to create multiple directories at once with mkdir?

If I wanted to create multiple directories (on the same level) and then feed it a comma seperated list of directory names (or something to that effect)?
13
votes
7answers
8k views

Mounting a Windows folder with writing permissions in Ubuntu

Apparently the answer is here: http://superuser.com/questions/251537/mount-specific-ntfs-directory-on-linux however it is not working as expected. I have a dual boot system with Windows 7 and Ubuntu ...
13
votes
2answers
27k views

Is it safe to delete a lost+found folder?

I have an empty seperate partition used for my vhd/virtualbox. mounted at /mount/win7. I've deleted everything now and there's a lost+found folder left over. It takes up about 5gigs Is it safe to ...
13
votes
1answer
427 views

Converting a file to directory

As we know "Everything in Linux" is a file, and moreover directory is just a file containing other files. So, I don't know if this "crazy idea" possible, but it should be in someway according to the ...
12
votes
6answers
5k views

How can you access a folder you want quickly?

You can't put folders in launcher in easy way, so how you access folders or files in fast and easy way?
12
votes
1answer
42k views

Copy folders (not one file) using SSH ubuntu? [duplicate]

I am trying to copy a folder to remote Ubuntu server using command line ssh connection, i understand it's doable to transfer a file using scp but i have many files in a folder iam trying to copy to ...
12
votes
4answers
2k views

Restore 'cd ..' functionality after following a symbolic link

If I create a symbolic link in the terminal with a command like ln -s /path/to/some/directory symbolicLink and then follow the link with cd symbolicLink the terminal appears to think that the cwd ...
12
votes
3answers
9k views

Create a link to a folder on the left panel of Nautilus file manager?

I would like to create a link to some new folder that I have in my home. The left panel shows docs, images downloads etc. But I would like to add my other folders that I created myself like university ...
12
votes
2answers
2k views

Best place to install apps [duplicate]

I am completely new to Ubuntu and I must say AskUbuntu and you folks are of great help. So now when I have started installing and playing with apps, my question is what is the best place to ...
12
votes
2answers
2k views

Rename default user directories

Is it possible to rename default directories like ~/Documents, ~/Music, ~/Videos? Especially I want to rename Videos to Movies.
12
votes
3answers
4k views

What happens if I delete the default folders in my home folder?

What are the consequences of deleting any of these? e.g.: How will applications that expect them to be present behave? Where will the items on my desktop go?
11
votes
3answers
1k views

What is the meaning of ~ in ~/somefolder?

I've been told to go to ~/.ssh and, actually, I did cd ~/.ssh and I got into it. However, I'm wondering: what does the ~ mean in this context?
11
votes
5answers
13k views

Is it bad practice for folder name to contain dot (.)? How about file name with multiple dots?

Sometimes it makes practical sense for a folder name to contain a dot (.). For example, you are storing data for an experiment conducted at L=0.5. So the folder might be named: experiment_L0.5 A ...
11
votes
1answer
20k views

How to get chmod (octal) permissions of the folder in the terminal?

I can look in properties of this folder but I want to get properties fast and in digits (octal, e.g. 755, etc.) What am I to type in terminal to know the chmod of the file or folder I want?
11
votes
1answer
1k views

How to make Downloads folder behave like a temp directory

In order to reduce disk space usage, I want to automate a temporary clean in my Downloads folder. I figured two ways to do so: 1) Changing the configurations of firefox, etc. to save files to /tmp/ ...
11
votes
3answers
2k views

Why does /cdrom folder exist? Shouldn't it be /media/cdrom or /mnt/cdrom?

Can somebody explain the logic behind Ubuntu's cdrom folder in root? (/cdrom) I recall it used to be /media/cdrom or /mnt/cdrom before (in different distros perhaps)? thanks.
11
votes
2answers
11k views

Why use a named pipe instead of a file?

I recently read about named pipes, and I couldn't understand why they exist. I've read somewhere that using a named pipe is less time-consuming than using a file. Why is this so? The named pipes also ...
10
votes
4answers
731 views

How would you count every occurrence of a term in all files in the current directory?

How would you count every occurrence of a term in all files in the current directory? - and subdirectories(?) I've read that to do this you would use grep; what is the exact command? Also, is it ...
10
votes
4answers
122k views

How do I navigate between directories in terminal?

I am new to Linux and Ubuntu and have tried changing to folders/directories with some difficulty. Could someone explain why the following commands failed to change to the desired target ...
10
votes
5answers
19k views

How to recursively remove .svn metadata folders?

I have a Java project and it used a SVN repository, now I decide to change to GIT. However the problem is that SVN engine that I used created in every folder of the project the .svn metadata ...
10
votes
2answers
2k views

10 million files in one folder

I've just added a predictive search (see example below) feature to my site that runs on a Ubuntu Server. This runs direct from a database. I want to cache the result for each search and use that if it ...
10
votes
6answers
25k views

How to search for all the files starting with the name “ABC” in a directory?

I need to search for files starting with some particular name. There can be multiple files starting with a particular pattern and I want to list all such files present in the directory.