Skip to content

Commit

Permalink
Aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkXero-dev committed Aug 27, 2024
1 parent f9e8999 commit 3987b90
Show file tree
Hide file tree
Showing 77 changed files with 2,033 additions and 2,726 deletions.
6 changes: 3 additions & 3 deletions content/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ description: "About This Site"

### Description

With **XeroLinux** no longer being a Distro, but a collection of _Projects/Scripts_, created with a simple goal in mind, making [**ArchLinux**](https://archlinux.org) more approachable, easier to install and configure. That's if you choose to use it, or even give it a try.
**XeroLinux** is an Arch-Based Distro, as well as a collection of _Projects/Scripts_, created with a simple goal in mind, making [**ArchLinux**](https://archlinux.org) more approachable, easier to install and configure. That's if you choose to use it, or even give it a try.

{{< alert "mastodon" >}}
Don't forget to [follow me](https://fosstodon.org/@XeroLinux) on Fosstodon.
{{< /alert >}}

### Point of this site

Our job from now on, on this site, is, to bring you the most useful **FOSS** tools and guides alongside our various projects as we work on them. It's your one-stop shop for those kinds of posts.
Our job, on this site, is, to bring you the most useful **FOSS** tools and guides alongside our various projects as we work on them. It's your one-stop shop for those kinds of posts.

As mentioned on a dedicated post, we will not be posting any news, Distro reviews and Vs. articles to avoid any drama, and because news tend to get old real fast. Also we try to avoid opinionated posts as much as we can.
As mentioned on a dedicated post, we will not be posting any Distro reviews or Vs. articles to avoid any drama. Also we try to avoid opinionated posts as much as we can.

{{< article link="/xero-news/youtube-status/" >}}

Expand Down
Binary file removed content/news/keep-xerolinux-alive/featured.webp
Binary file not shown.
26 changes: 0 additions & 26 deletions content/news/keep-xerolinux-alive/index.md

This file was deleted.

Binary file added content/posts/linux-aliases/featured.webp
Binary file not shown.
50 changes: 50 additions & 0 deletions content/posts/linux-aliases/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: "Linux Aliases"
date: 2024-08-27
draft: false
description: "How To Create Your Own Terminal Aliases"
tags: ["Terminal", "Alias", "Linux"]
---
### Intro

Are you sick and tired of having to type the lengthy update commands in terminal like I am ? Don't you wish there were shorter and easier ones ? Well, you are in luck. This post will cover how you can create your own easy to remember *Aliases*.

### What are aliases?

Basically, they are custom user created commands, by you, that execute various actions. However, I would highly recommend you check if you have any tools installed that have similar ones, and avoid replicating or replacing them.

### How to create Aliases

First, before you start, you will have to know what shell you are using, as different ones use different config files. In case of **Bash** you will have to edit the `.bashrc` file found in your home directory's root. And in the case of **ZSH**, it will be the `.zshrc` file found at that same location and so on.

With that out of the way, the method is the same for both. Just open relevant file in your IDE of choice and let's begin.

![Terminal](https://i.imgur.com/Ks6e0Mn.png)

Here's how aliases are structured :

```Bash
alias shortcmd="actualcmd"
```

Update Example (Arch) :

```Bash
alias update="sudo pacman -Syu"
```

Update Example (Debian) :

```Bash
alias update="sudo apt update && sudo apt upgrade"
```

Now save your file, restart your terminal and test them out. The sky's the limit as how many you can create. I use a ton of them in **XeroLinux**. To check them out visit this link >> [**XeroLinux Aliases**](https://github.com/xerolinux/xero-fixes/blob/main/conf/.bashrc).

### Wrapping up

Using aliases makes one's Linux journey a much more pleasant one. So do not hesitate to use them. I, like everyone else get frustrated with having to memorize the ones provided by the distro am using. Especially why I test so many. That's the first thing I do when installing a distro. Never again will I go through this ordeal. Anyway I hope this post has proven useful.

That’s it folks ..

Cheers !
Loading

0 comments on commit 3987b90

Please sign in to comment.