Hey everyone! I'm new to Ubuntu and I'm trying to learn the basics so I can eventually set up a Plex server on an old desktop. I've been following a command line tutorial, and I got to the part about creating an alias by editing the .bashrc file in Nano. When I added my alias (I tried several formats like `alias c=clear` and `alias c='clear'`), nothing worked. I noticed some discussions online mentioning a file called .bashrc_aliases, but I couldn't find that in my home directory. I even created it but it still didn't work! Can someone help me figure out what I'm doing wrong? I'd like to understand this before I dive deeper into using the terminal, as I know aliases are really helpful for streamlining commands. Thanks for any tips or resources you can share!
1 Answer
It sounds like you're close! The syntax for the alias should indeed be `alias c='clear'`—make sure there are no spaces around the equal sign. The .bashrc file should work fine, but remember to 'source' it to apply the changes. Just run `source ~/.bashrc` after saving it. This way, your terminal recognizes the new alias right away! Let me know if you're facing any error messages when you try it at the command line.

Thanks for clarifying the syntax! I figured out that I just needed to source the file first. Not entirely sure what that command does, but I'm glad it's working now!