Saturday, 13 Dec 2025
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  IBM offers AI-based cloud service to manage complex networks

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

BrainChip, Frontgrade Gaisler forge alliance on space-grade AI-enabled microprocessors

BrainChip Holdings, a neuromorphic computing machine supplier, and Frontgrade Gaisler, a system-on-chip options supplier, have…

May 10, 2024

Circuit Raises $17M in Series B Funding

Circuit, a NYC-based short-trip, electrical shuttle options firm, raised $17M in Collection B funding. The…

February 13, 2025

AWS Migration Competency Status Attained by Cloudelligent

Cloudelligent, a number one Managed Cloud Companies supplier, introduced as we speak that it has…

October 6, 2024

Fieldstone Bio Raises $5M in Seed Funding

Fieldstone Bio, a Boston, MA-based firm delivering AI-powered dwelling sensors to determine goal chemical substances,…

May 18, 2025

Intel saga continues: Federal bailout questions and another voice undermines CEO Tan

It might be a very good deal, it might be a nasty one, says Jack…

August 19, 2025

You Might Also Like

Data center / enterprise networking
Global Market

P4 programming: Redefining what’s possible in network infrastructure

By saad
Why data centre megadeals must prove their value
Global Market

Why data centre megadeals must prove their value

By saad
photo illustration of clouds in the shape of dollar signs above a city
Global Market

Cloud providers continue to push EU court to undo Broadcom-VMware merger

By saad
Kao SEED Fund awards £30,000 to Harlow community projects
Global Market

Kao SEED Fund awards £30,000 to Harlow community projects

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.