Questions tagged [directory]

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

Filter by
Sorted by
Tagged with
65
votes
6answers
176k 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 ...
542
votes
7answers
2.7m 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 ...
14
votes
3answers
72k views

How do I cd into a directory in the home folder?

How do I change directories to downloads, from the home folder, in the latest version Ubuntu 12.10? I tried cd /downloads, but it gave an error saying that there is no such directory.
89
votes
6answers
150k 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 / ...
3
votes
2answers
6k views

Auto mount a disk drive in ubuntu 14.04 LTS (Bookmark directory not found)

I'm using ubuntu 14.04 LTS. When I start my pc and click on any bookmark from the file manager it shows this error: Unable to find the requested file. Please check the spelling and try again. ...
52
votes
6answers
14k views

How can I hide directories or files 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?
66
votes
7answers
71k views

Is there a tool to encrypt a file or directory?

What's the most popular way to encrypt individual files or folders?
305
votes
2answers
221k views

Differences between /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin

I have six directories with command files. These are /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin and /usr/local/sbin. What are the differences between these? If I'm writing my own scripts, where ...
14
votes
0answers
3k views

How do I enter a file or directory name containing spaces or special characters in the terminal? [duplicate]

I have a collection of files and directories with strange names, they contain spaces and the special characters \, *, ), ( and ?. All of them cause problems when I try to use them in the command line ...
11
votes
3answers
10k views

How to drag a folder to the launcher from Nautilus

How can I add a folder to the launcher for quick access to it. In this particular case I wish to drag it to the launcher.
76
votes
5answers
71k 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 ...
12
votes
5answers
48k views

Can I change directory to a Windows drive in Ubuntu Bash on WSL?

I am a super newbie for Ubuntu and basically need Ubuntu for a Python package. I would like to run a Python file in say e:/username/folder1/folder2/python.py. I tried every method online and the only ...
18
votes
3answers
129k views

“You are not the owner…” message when trying to access folder

In the properties menu of this folder the permission is set to "root" user and group, it shows the message "you are not the owner, so you cannot change these permissions." I am indeed the owner and ...
26
votes
4answers
330k 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/...
50
votes
3answers
225k views

Use chown to set the ownership of all a folder's subfolders and files?

How can I use the chown command to change the ownership of all a folder's subfolders and files?
11
votes
5answers
21k views

Is there some way to decrease folders/icons size in Nautilus 3.18?

In the newest Nautilus 3.18 the smallest folder/icon size is really too big. Is there some way to hack (or something) this program and set a smaller one?
4
votes
3answers
4k views

Strange folder in my home folder after a failed run of BleachBit

A folder was created in my home folder (not by anyone), and I cannot see the folder contents. She has root privileges, but when the nautilus root access the folder is empty. When I try to remove it, ...
59
votes
5answers
67k 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?
42
votes
3answers
52k 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 ...
67
votes
3answers
73k 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. ...
20
votes
2answers
18k views

How can I change the default location of content directories (eg Pictures, Templates, Music) in my home folder?

I have multiple users on my home desktop. I am content with most of the default user directories, however I would like to make one change. I would like to setup a common directory for Music (ie /home/...
9
votes
2answers
4k views

How to use grep output as a path for cd?

How can I pipe grep output as an argument to the cd command? For example: [root@xxx xxx]# pip install django | grep '/usr.*' Requirement already satisfied (use --upgrade to upgrade): django in /...
2
votes
1answer
1k views

Give permission to debian-transmission to write into a www-data directory

I want the transmission-daemon to have permission to write to a directory called /opt/www/ that already has the owner set to www-data(in order for the web server to serve files in it) The ...
12
votes
2answers
7k views

How to hide files and folders in Nautilus?

I want to hide, most of the folders in root (/) using Nautilus. Probably the only folders in / I want shown are /home and /tmp. In addition to hiding folders, I also want to hide two files: initrd....
10
votes
2answers
6k views

How to stop a file or folder from being indexed in GNOME?

I am running Ubuntu GNOME 15.10 with GNOME 3.18, and I would like to know if I can do any of the following and if so how: Make it so that a folder is not indexed but leave its contents indexable (so ...
79
votes
5answers
101k 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 ...
19
votes
1answer
3k views

How to set the first picture of every folder as its folder icon?

If there are pictures in folder A, B, C.....Z, how do I automatically set the first picture in each of these folders as its folder icon? Is there a way like a script or something else?
18
votes
1answer
3k views

What are directories, if everything on Linux is a file?

Very often beginners hear a phrase "Everything is a file on Linux/Unix". However, what are the directories then? How are they different from files?
21
votes
6answers
9k 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?
84
votes
3answers
45k 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?
38
votes
4answers
531k views

How to write the path of a folder with space in its name? [duplicate]

I can't figure out how to write the path of a folder that includes spaces in its name (in Terminal). I tried: cd /path/path/path/"A Folder"/file cd /path/path/path/'A Folder/file cd /path/path/...
55
votes
6answers
69k 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 ...
29
votes
8answers
23k views

Which Folders To Include In backup?

I'm quite new to Ubuntu and want to create a backup. I'm really not sure what files and folders to include so that if I restore my system it will be as it is now. I can't seem to find good details of ...
58
votes
6answers
51k 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 ...
21
votes
2answers
4k views

Rename default user directories

Is it possible to rename default directories like ~/Documents, ~/Music, ~/Videos? Especially I want to rename Videos to Movies.
48
votes
5answers
10k 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 ...
16
votes
3answers
7k 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?
9
votes
1answer
8k views

How to use ssh to transfer files from computer a to local computer

I am trying to get some files off of my school Linux account using ssh. I have got the connection to work using: scp <school_server>: ~/folder I want ~/where I want to go. But when it goes ...
8
votes
3answers
5k views

How to encrypt folders (not in Home)? [duplicate]

Is there a way to encrypt a folder, which is not in Home (/home/user/) but even in a different partition, so only my user can access/read contained files? Alternatively, I would like to understand if ...
15
votes
3answers
2k views

Two accounts on same computer - how can I make a share folder for both?

I need a shared folder. My wife and I need to exchange files on the same computer. How can we do that?
6
votes
5answers
12k views

Nautilus crashes when accessing some folders

Since the past few days, Nautilus has started crashing whenever I access one of the Documents, video, pictures, download folder. It does not happen when I access the home folder and other mounted ...
7
votes
1answer
1k views

Ubuntu One Sync for multiple folders in Windows, not just the Ubuntu One folder

I may have misunderstood Ubuntu One as a service, but this is how I had pictured it. At home, I tagged a few folders with the "Sync to Ubuntu One" tick and it started uploading. Now back at work, on ...
19
votes
3answers
7k 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?
9
votes
2answers
27k views

How to change folders color?

How do i change the folders colors? i am using this icon theme FS icons and there are several folders. like black, gray, purple, orange(which is the default), yellow, green, red, blue, brown and ...
198
votes
8answers
874k views

Find a file by name using command-line

I would like to determine the location of a file using command-line. I have tried: find . -type f -name "postgis-2.0.0" and locate postgis-2.0.0 to no avail. What is the command to determine the ...
128
votes
4answers
627k 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-...
33
votes
7answers
134k views

Folders showing lock icon

Whenever I open my documents, all the folders in it are displayed with a lock icon. Therefore, I cannot delete any file or folder in it. I tried changing the root access using sudo chmod user:...
55
votes
11answers
190k views

How to remove all files and subdirectories in a directory WITHOUT deleting the directory in bash?

Is there a command to remove all files and subdirectories in a directory without deleting the directory? For example if I have directory dontDeleteMe with subdirectories 1, 2, 3 and each subdirectory ...
61
votes
12answers
321k 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.
23
votes
10answers
162k 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 ...

1 2 3 4 5 6