I find that somehow the Downloads directory in /home/user/ is deleted.
on using
$locate Downloads, it shows the existence of directory without any existence of files within.
now when i manually create directory named Downloads,
$ locate Downloads shows the directory as well as the files the original folder had.
also there is no hidden Downloads folder nor can i access the folder or its files
th
I just installed Ubuntu server 12.04, now when I create any folder in www/ the default permission is creating problem and every time I have to give permission manually.
Please give me the command to run so that when I create any folder or file in the www directory I do not have to give permission and it run by default.
thanks in advance
Sorry, I know this must have been asked before but I couldn't find it...
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 has a few pictures in it, how can I remove the subdirectories "1", "2", and "3" and all the files in the them, withou
I have a large directory of music files that is often changing as files and directories come and go.
I recently got a new Windows computer and would like to dual boot with Ubuntu. I don't really want to have 2 separate file systems (with mounting) but would like to integrate the two, if it is possible.
I want to get a Linux command's output string as well as command output status in a C++ program.
I am trying to make a bash script that will find all the mp3s in my Downloads folder and move them into a music folder.
I have a very simple ksh script and at certain points I want to write to a log file. I use the following commands in two places...
print "Directory listing 1:\n" > ${LogFile}
ll >> ${LogFile}
(Note: The second time this command is used print Directory listing 2)
My problem is, when I view the log file afterwards, only the second execution of these commands work!
You will sometimes need to use the command line to access the USB and transfer files from or to it. This usually happens when something wrong happens to X or when you try to install everything from scratches like with Arch Linux.