Mailing List Archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Linux Quiz: Call For Questions

On Sun, Apr 27, 2014 at 7:12 AM, Bruno Raoult <> wrote:
On Sun, Apr 27, 2014 at 12:45 AM, Mattia Dongili <> wrote:
> On Sat, Apr 26, 2014 at 08:19:27PM +0200, Bruno Raoult wrote:
> ...
>> 1) How to remove a file named ".abc"

Ooops. This is what I meant, of course.

Typo again, sorry. I wanted to have the file starting with "-".

I am really tired these days, not able to read my own posts. I need a break.

Coming back to the beginning, this question was to remove a "-abc" file, not ".abc" (which has no problem).

As this question is about accessing a file with a command such as "rm", we could expand a lot with shell regular expressions and interpretation, but playing with these ones is maybe going too far (being shell dependant, and nobody is supposed to know all tricks of every language).

The "rm" question is interesting, as it forces to understand the notion of options vs parameters. Going further, it can bring questions about the escape character (let say "\"). Or why "ls *txt" is not always doing what they expect. This will bring the idea (maybe) to listeners who could start to propose solutions to consider an option such as "-e" or whatever. Then, they will have understood the problem, as they will know how to remove the "-e" itself (beside the "./" or other methods they did find initially).

My problem is that it is about command-line. Would your father or your friend care this a lot? My friends do not, even those having some Gnu/Linux at home.
And it is impossible to ask questions about GUI, as you and me don't know the answer...


2 + 2 = 5, for very large values of 2.

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links