Sunday, 1 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  AWS launches ‘Capabilities by Region’ to simplify planning for cloud deployments

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

NYU’s new AI architecture makes high-quality image generation faster and cheaper

Researchers at New York College have developed a brand new structure for diffusion fashions that…

November 9, 2025

Tencent improves testing creative AI models with new benchmark

Tencent has launched a brand new benchmark, ArtifactsBench, that goals to repair present issues with…

July 9, 2025

Duos Edge AI, Accu-Tech Accelerate U.S. Edge Computing Deployment

Duos Edge AI has entered right into a strategic partnership with Accu-Tech to speed up…

October 9, 2024

SydeLabs raises $2.5M seed to develop an intent-based firewall guard for AI

Be part of us in Atlanta on April tenth and discover the panorama of safety…

April 1, 2024

Previewing the Biggest Data Center Conferences of the Year

Get your lanyards prepared: 2025 guarantees to be chock-full of on-line and in-person knowledge heart…

January 15, 2025

You Might Also Like

shutterstock 440449237 gush of water from a fountain
Global Market

Raising the temp on liquid cooling

By saad
Close-up cropped view portrait of his he nice attractive skilled professional smart focused guy monitoring client
Global Market

New Relic connects observability platform to business outcomes

By saad
Data center / enterprise networking
Global Market

HPE’s latest Juniper routers target large‑scale AI fabrics

By saad
Panoramic high speed technology in big city concept, light abstract background.
Global Market

Netskope targets AI-driven network bottlenecks with AI Fast Path

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.