How do I unlock a file ? / SOLVED !

Smoot Carl-Mitchell smoot at
Wed Apr 9 15:17:30 UTC 2008

On Wed, 2008-04-09 at 12:05 +0800, SYNass IT Ubuntu / Linux wrote:

> I overlooked a little dot at the begin !!!
> So, my typing found no match and couldn't proceed. ;-(
> BTW one more question:
> MythTV is a directory !
> The last file was .qt ... and something !!
> All your hints tell me do remove a folder with "rm" !?
> I always assumed "rm" is used to remove files !?
> Isn't "rmdir" the command to remove a directory ???

rmdir will only remove an empty directory.  rm -rf says remove a
directory and all its contents recursively.  What the command does is
remove all the regular files in every directory in the target tree and
then remove the directories after they no longer have any file entries.

As you have probably discovered the normal file matching does not match
on any files or directories which start with a ".".  This is the Unix
convention to "hide" files and directories.  You can see the hidden
files and directories by running:

ls -a

The "-a" switch will print all the hidden files starting with a ".". You
will see that every directory has two entries "." and ".." which are
entries for the directory itself "." and the parent directory ".."  This
is why "cd .." takes you to the parent directory and "./filename" refers
to a file in the current directory.
Smoot Carl-Mitchell
System/Network Architect
smoot at
+1 480 922 7313
cell: +1 602 451 9005

More information about the ubuntu-users mailing list