I had/have Raspbian and used the LXDE desktop environment. Many posts will commands to enter in and not use the GUI. I took a quickie online video crash course on using linux and being an admin. They covered something about aliasing commands in general, which I think is really helpful. Like aliasing the ls -l command as ll or ls -a command as la.
For using the raspberry pi and the commands line, I know many of these may depend on what you are intending to do with the Pi. But what are some good commands to alias that probably could be used for all projects?
(ie - "sudo apt-get update && sudo apt-get upgrade" being aliased as "upgrade" or something like that). I am not worried or concerned about what the aliased phrase will be as everyone will have a preference I am sure. But based on some common commands, what should be aliased?
1 Answer
As I don't think this exactly answers your question, I'd prefer to post this as a comment but I don't yet have the reputation to do so, my apologies.
Although this would be a great convenience, I feel like I should also warn you of potentially limiting your experience. Sure, aliasing the update/upgrade command to simply upgrade
would make your work on this machine much simpler, but beware of falling into habit of this and not having your skill transfer over to other Debian like systems. Say in the future you get an admin position running a ubuntu server and you no longer have access to your aliases.
That being said, I think your list of commands isn't something you can really have a "once size fits all" thing, so much as keep a list for yourself of things you often use. I personally would use
update
forsudo apt-get update && sudo apt-get upgrade && sudo apt-get autoremove
serverconnect
for quickly SFTPing into my remote server- I also run some server type applications, so perhaps a
startservers
to (re)boot apache, your VoIP server, your file server, etc. all with one command
rm
withrm -i
for safety, orgrep
withgrep --color
, since it might as well be so on any modern terminal), it would be better to think of there being nothing which should be universally aliased. Command interfaces aren't arbitrary; the fact that it may only take you 30 seconds glancing at a man page doesn't mean that's how long the design took to think up. Of course, there may be many specific things specific people want to do