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

learn more… | top users | synonyms (3)

208
votes
5answers
1.1m 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 ...
144
votes
1answer
98k 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 ...
73
votes
3answers
39k 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?
61
votes
5answers
91k 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 / ...
59
votes
3answers
113k 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 ...
54
votes
3answers
335k 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 ...
50
votes
8answers
48k views

Is there a tool to encrypt a file or directory?

What's the most popular way to encrypt individual files or folders?
49
votes
4answers
68k 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 ...
44
votes
4answers
27k 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 ...
42
votes
4answers
7k views

Accidentally created directory named “~” (tilde)

I managed to make a directory literally named ~. (Apparently, Python's os.mkdir('~/something') does this.) How do I remove it without nuking my home? Also, if it helps, I have my real /home on a ...
40
votes
3answers
232k 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 sub-...
39
votes
6answers
8k 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?
39
votes
5answers
48k 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 ...
39
votes
3answers
41k 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. ...
35
votes
5answers
24k 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 ...
31
votes
3answers
29k 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?
30
votes
6answers
70k 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 ...
29
votes
6answers
82k 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 ...
26
votes
2answers
26k 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 ...
26
votes
1answer
53k views

How do I mount a folder from another partition?

Is there a command to mount a folder from one partition to my main partition? Example of what I'd like to do, which obviously doesn't work: mount /media/tc1/folder /home/dvad/home If not by using ...
23
votes
5answers
8k 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)?
23
votes
4answers
21k 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 ...
22
votes
4answers
3k 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 ...
20
votes
1answer
68k 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 ...
19
votes
2answers
44k 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 ...
19
votes
1answer
8k 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 +/-30,...
16
votes
10answers
109k 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 ...
16
votes
1answer
47k views

How can i check the folder permissions in ubuntu server 12.04?

Right now, I know that I can change persmissions for example with : sudo chmod 550 directory I wonder how I can check the actual folder permission.
16
votes
2answers
32k 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 ...
15
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?
15
votes
3answers
11k 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 ...
15
votes
1answer
558 views

How to set the first picture of every folders as their folder icons?

If there are pictures in folder A, B, C.....Z, how do I automatically set the first pictures of these folders as their folder icons? Is there a way like a script or something else?
15
votes
2answers
401 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
11answers
2k views

How to quickly move into and from deeply nested directories through CLI? [duplicate]

We know that using cd <directory> will open the directory, if it exists! Also, cd .. will take us up one level from the current working directory. But, when we have a nested dir with longer ...
14
votes
2answers
5k 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
1answer
23k 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?
14
votes
1answer
730 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 ...
14
votes
3answers
699 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
2answers
17k 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 ...
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
4answers
157k 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 folder/...
13
votes
6answers
42k 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.
13
votes
7answers
10k 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
1answer
4k views

Does a mountpoint have to be an empty directory?

Or does it overwrite the existing data in the mountpoint? Or is it just un-accessible?
12
votes
5answers
17k 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 ...
12
votes
2answers
3k views

Placing many (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 ...
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
2answers
2k views

What does the l command do?

There is a command l available on my machine which appears to do nothing. which l also produces no output. Is this a real command, and does it actually do anything?
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 install/...
12
votes
1answer
23k views

How do we know that a directory is apache writable?

I've been told that I should create a images folder and an assets folder, and that I needed to make sure that: "they are apache writable". I've also been told to make the app/runtime directory web-...