Linux Essentials L2.4 Working with files and directories

Поділитися
Вставка
  • Опубліковано 23 гру 2024

КОМЕНТАРІ • 8

  • @nervesofsteel01
    @nervesofsteel01 4 роки тому +1

    You have not moved the file across @ 11:52 but you have renamed it ..

  • @TheDeIirium
    @TheDeIirium 8 років тому +1

    Why does the ^ character expand to "begins with" in the command ls -a | grep '^\.' while it does expand to the opposite when it is being used in rm [^s]* ?

    • @theurbanpenguin
      @theurbanpenguin  8 років тому +1

      If the ^ is at the start pd a string then we are saying any character followed by the string. If it st the end of the string then we srae saying a string followed by any character

    • @TheDeIirium
      @TheDeIirium 8 років тому

      Thank you, sir!

  • @anglojojo
    @anglojojo 9 років тому

    If I understand correctly the backslash infront of a special character works the same as single quotes would by eliminating any protection that character has. In regards to it's function.
    Example:
    ls [\!]*
    ls ['!']*
    Is my understanding correct? as the results of both commands are the same.

    • @andrewmallett1525
      @andrewmallett1525 9 років тому +1

      +anglojojo yes. \ protects the following character from shell expansion. The single quotes protect all characters quoted from shell expansion

    • @anglojojo
      @anglojojo 9 років тому

      +Andrew Mallett Thanks for connecting the last dot in my brain :)

  • @bossco30
    @bossco30 11 років тому

    Do you know where I can find a some practice tests for the LPI's Linux Essential?