Sunday, 22 Mar 2026
Subscribe
logo
  • Global
  • AI
  • Cloud Computing
  • Edge Computing
  • Security
  • Investment
  • Sustainability
  • More
    • Colocation
    • Quantum Computing
    • Regulation & Policy
    • Infrastructure
    • Power & Cooling
    • Design
    • Innovations
    • Blog
Font ResizerAa
Data Center NewsData Center News
Search
  • Global
  • AI
  • Cloud Computing
  • Edge Computing
  • Security
  • Investment
  • Sustainability
  • More
    • Colocation
    • Quantum Computing
    • Regulation & Policy
    • Infrastructure
    • Power & Cooling
    • Design
    • Innovations
    • Blog
Have an existing account? Sign In
Follow US
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
Data Center News > Blog > Global Market > Making bash aliases easy to manage
Global Market

Making bash aliases easy to manage

Last updated: March 22, 2024 11:33 am
Published March 22, 2024
Share
Typing at a computer
SHARE

I’ve undoubtedly stated this earlier than, however the simplest aliases on Linux are those who prevent numerous time or make it easier to keep away from typing errors – particularly these errors which may trigger issues in your system. Aliases can help you run each sophisticated and steadily used instructions with minimal effort. In the event you kind a command like alias rec=‘ls -ltr | tail -10‘ in your terminal session, you should have created an alias that can show the ten most lately created or up to date recordsdata in your present listing. This makes it simpler to recollect what you’ve most lately been engaged on and to make vital updates.

To protect your aliases for future use, you possibly can add them to your .bashrc file. In the event you do that, it’s a good suggestion to group them on the finish of the file in order that they’re simpler to seek out, evaluate and modify as wanted. However, a few of my techie pals favor to retailer their aliases in a separate file and be sure that their shell will supply that file every time they log in by utilizing a command like supply aliases or just . aliases. Notice that the phrase “supply” and the one character “.” do the identical factor.

The checklist under reveals a bunch of aliases. Some are very simple, just like the one which lets you kind only a “c” as a substitute of typing the phrase “clear”. I truly use that one very steadily and admire that I solely need to kind a single letter to clear my display screen. One reveals the biggest recordsdata within the present listing, one reveals essentially the most lately up to date recordsdata, and one other installs system updates. There are a lot of good causes to make use of aliases to simplify instructions with out shedding monitor of what these instructions do.

alias big5='du -h | type -h | tail -5'
alias c="clear"
alias set up="sudo dnf set up"
alias myprocs="ps -ef | grep `whoami`’V
alias myps="ps -ef | grep `whoami` | awk '{print $2}'
alias latest="historical past | tail -10"
alias rec="ls -ltr | tail -5"
alias replace="sudo dnf improve –refresh"

You’ll be able to checklist aliases with the alias command and, when it’s useful, type them or use a type or grep command to checklist solely these containing sure strings.

$ alias | type | head -2
alias big5='du -h | type -h | tail -5'
alias c="clear"
$ alias | grep rec
alias latest="historical past | tail -10"
alias rec="ls -ltr | tail -5"

If you need an alias to go away quickly for some purpose, you should use the unalias command. So long as your alias is included in your .bashrc file, or a file that you simply supply to make your aliases out there to you, they’ll all be simply prepared when you should use them once more.

$ unalias big5

The aliases under can prevent just a little time when you should again up a listing or two. Simply keep in mind that aliases is not going to be out there in your subsequent login except you save them in your .bashrc or separate aliases file.

See also  Gcore Acquires StackPath WAAP to Boost Edge Security Solutions Portfolio

Source link

TAGGED: aliases, bash, easy, Making, Manage
Share This Article
Twitter Email Copy Link Print
Previous Article Schneider Electric Offices US Schneider Electric Invests $140M in US Facilities to Meet Data Center Demand
Next Article IoT How to deploy software to Linux-based IoT devices at scale
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Your Trusted Source for Accurate and Timely Updates!

Our commitment to accuracy, impartiality, and delivering breaking news as it happens has earned us the trust of a vast audience. Stay ahead with real-time updates on the latest events, trends.
FacebookLike
TwitterFollow
InstagramFollow
YoutubeSubscribe
LinkedInFollow
MediumFollow
- Advertisement -
Ad image

Popular Posts

Sustainable Data Center Liquid Cooling Trends for the AI Heat Wave

Liquid cooling is right here to remain. With demand for AI and high-performance computing on…

July 18, 2025

Linux Foundation Spearheads Global Effort to Advance Corporate AI Systems

The Linux Basis and a lot of key know-how corporations are working collectively to develop…

April 24, 2024

Google warns transmission delays are now the biggest threat to data center expansion

The delays stem from getting older transmission infrastructure unable to deal with concentrated energy calls…

January 15, 2026

Liquid cooling could cut energy and water use

In response to Izabela Jasinska, Liquid Cooling Enterprise Chief at Chemours, superior immersion programs can…

May 30, 2025

AWS accelerates AI innovation with $100M investment

Launched in 2023, the AWS Generative AI Innovation Heart has assisted 1000's of purchasers from…

July 17, 2025

You Might Also Like

Nvidia space data center
Global Market

Nvidia joins push for data centers in space

By saad
The European Commission headquarters in Brussels (8)
Global Market

Beware hyperscalers’ ‘sovereignty washing,’ Euro cloud operators tell EU

By saad
Schneider Electric, NVIDIA and AVEVA unveil AI data centre design tools
Global Market

Schneider Electric, NVIDIA and AVEVA unveil AI data centre design tools

By saad
data center men servers cloud
Global Market

IDC: Dell leads server market driven by AI infrastructure needs

By saad
Data Center News
Facebook Twitter Youtube Instagram Linkedin

About US

Data Center News: Stay informed on the pulse of data centers. Latest updates, tech trends, and industry insights—all in one place. Elevate your data infrastructure knowledge.

Top Categories
  • Global Market
  • Infrastructure
  • Innovations
  • Investments
Usefull Links
  • Home
  • Contact
  • Privacy Policy
  • Terms & Conditions

© 2024 – datacenternews.tech – All rights reserved

Welcome Back!

Sign in to your account

Lost your password?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
You can revoke your consent any time using the Revoke consent button.