Hot answers tagged directory
Use Bash's command substitution $(), you also need -o with grep to only select the matched portion: cd "$(pip install django | grep -o '/usr.*')" Note that although you will get away in this case but you should always enclose the command substitution with double quotes so that the shell does not perform word splitting on whitespaces (by default space, tab ...
Depending on what you do and don't know beforehand about what pip will output, you might decide to grep for something other than /usr.*. If you know the directory starts with /usr (and that it appears at the end of the line of output from pip, and that /usr does not appear anywhere on the line before the directory name), then that's a fine choice; heemayl's ...
sudo mv /home/kristens/yourdir /home/janis/ sudo chown -R janis:janis /home/janis/yourdir
Something like this will work for moving a folder with name FOLDER from USER1's (Kristens) home to USER2's (Janis) home sudo cp -r /home/USER1/FOLDER /home/USER2 Use mv instead of cp -r if you want to move the folder instead of copying it. sudo has to be used due to multiple users. You will also likely need to set these permissions so USER2 can access ...
Bellow you can see me make a test folder and change the ownership of that folder to another user. I cannot create a file if the directory isn't owned by me. Similarly, as testuser, I couldn't remove a test file owned by my account. But as you see, if a user can run sudo, that user can change ownership of the folder, change file permissions, and thus - view ...
/usr/local/bin seems to be the conventional place, and this directory should be empty on a fresh installs. Source: The accepted answer on this question: Differences between /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin
Let's examine an example. File relative_urls.list: > cat relative_urls.list /users/449/oli /users/449 /help/badges /help/badges/185/curious /unanswered /questions/tagged/12.04 /questions/tagged/boot /questions/tagged/oracle /questions/tagged/internet_explorer /questions/tagged/outlook We'd like to check if these documents available on the site ...
They're located in /usr/share/backgrounds
Where should it be? By default when you open the file manager you run around your home directory(/home/username), same as in windows C:\Users\Username . Notice how /usr/local starts with backslash ? There's root directory from which you can access other directories; the image to keep in mind is the root directory is where root starts, and everything else is ...
If I understood correctly e.g. nautilus ~ were ~ is your home folder and can be replaced by the folder you have in mind.
Owner User and Group of my /var folder is root/root (permission 755). This is my output of: ls -d /var/ drwxr-xr-x 13 root root 4096 Apr 16 2014 /var/
This command moves all files and folders from /home/kristens/ in to /home/janis To consider hidden files: shopt -s dotglob Move files and subfolders: sudo mv /home/kristens/* /home/janis Set the access rights with: sudo chown -R janis:janis /home/janis/* Example $ shopt -s dotglob $ ls -la /home/kristens total 148 drwxrwxr-x 4 kristens kristens ...
To see a file (not its contents, only the file itself), you need to have read permission for the file's parent directories. There are no "view" permissions. As long as you can read a directory, you will be able to see all the files in it. Whether or not you can modify the file or read its contents will depend on whether you have execute permissions on the ...
Only top voted, non community-wiki answers of a minimum length are eligible