Welcome to the Linux Foundation Forum!

LFS101 feedback - Wrong information in course

Hi. Sometimes I notice small errors in the course and would like to report it. Is this the right place?

If yes, LFS101 chapter 13.1 gives the user a task to create an alias. The task solution says the alias can be made without any quotes at all because there are no white-spaces in the command. This is not true:

alias projectx=cd /tmp

will fail with:

bash: alias: /tmp: not found

Sorry if I misinterpreted anything.

Comments

  • fcioanca
    fcioanca Posts: 2,179

    Hi @marcomontevechi

    All content related questions or issues should be posted in the forum - please make sure to specify the chapter and page titles, along with the issue encountered or suggestions. It may also be helpful to specify what distribution and version you are using, as things may vary.

    Regards,
    Flavia
    Linux Foundation Training Team

  • Hi, thanks for the clarification. I'm using ubuntu 22.04 but In this particular case I don't think this command usage would vary with distribution.

    I suggest changing Chapter 13.1 "Deploying aliases" solution from:

    The alias line would look like this:
    
    student:/tmp> alias projx='cd /home/staff/RandD/projects/projectX/src'
    
    Note you can use double quotes instead of single quotes, or use no quotes at all since there is no white space in your defined alias. All you have to do now to change to the directory is
    
    student:/tmp> projx
    
    To make the alias persistent, just place it in your $HOME/.bashrc file.
    

    To:

    The alias line would look like this:
    
    student:/tmp> alias projx='cd /home/staff/RandD/projects/projectX/src'
    
    Notice you need to use the quotes since there is a white space in the defined alias. You could choose either double or single quotes. All you have to do now to change to the directory is
    
    student:/tmp> projx
    
    To make the alias persistent, just place it in your $HOME/.bashrc file.
    
  • fcioanca
    fcioanca Posts: 2,179

    Thank you for the suggestion. We have started reviewing the existing content and working on updates, which will be rolled out later this year. The course authors will take your suggestion into consideration as part of the update process.

Categories

Upcoming Training