Linux Aliases

Linux Aliases are essentially shortcuts within the terminal app.  You can configure them in "/home/user/.bashrc",/home/user/bash.bashrc” or “/home/user/bash_aliases“.   Any command you enter in terminal can be shortened down to as little as two letters!

Examples:

  • user:~$ nano ~/.bashrc
  • user:~$ sudo nano ~/bash.bashrc
  • user:~$ sudo nano ~/.bash_aliases

Once you have nano open you can enter all the aliases you want to make terminal quick and efficient!

Syntax for aliases in .bash_aliases:

  • alias update='sudo apt-get update'
  • alias update='sudo apt-get update && sudo apt-get upgrade -y'

 

Megabit vs Megabyte Explained

Internet Service Providers have marketed their speeds in Mbps or Megabits Per Second for years. It’s important to know the difference between Megabit and Megabyte, as they are two completely different metrics. Megabit is a lot smaller than a Megabyte.  If you want to calculate your actual download or upload speeds – you need to multiply the speed you’re getting by “.125“.  So, for example, if you’re getting 300 Mbps download speed from your ISP – you’re actually only getting 37.5 MBps Download speed.  This is a huge misconception with a lot of people thinking they are actually getting the 300 MBps speed!  To put it in perspective a SATA 3 (6 GBps) hard disk transfers data at a rate between 70 MBps to 120 MBps.  A USB 3.0 Thumb Drive will transfer data around 80 MBps to 130 MBps.  So in short, keep this in mind when you are shopping for an Internet service provider or upgrading your service.

Here is a chart so you can see how download rates compare to transfer rates.

Data Measurement Bit Byte Kilobyte [KB] Megabyte [MB] Gigabyte [GB]
Download Rate 1 or 0 8 Bits 1024B 1024K 1024MB
Transfer Rate NA NA 128b 128k 128mb