Monday, 12 Jan 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  Kathryn Almendarez Marsman - Pax8 -

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

The tool integration problem that’s holding back enterprise AI (and how CoTools solves it)

Be a part of our every day and weekly newsletters for the newest updates and…

April 3, 2025

Is Italy the the new hot spot for the cloud?

Massimo Bandinelli, Advertising and marketing Supervisor at Aruba Cloud, explores Italy’s rise as a key…

April 27, 2024

Ring steps back from sharing video with police — mostly

Ring will no longer let local police publicly ask people for doorbell footage through its…

January 30, 2024

Hivelocity Launches VPS Pro for Power Users and Businesses

Hivelocity, a supplier of digital servers, enterprise cloud, naked steel, and colocation, has launched its…

May 31, 2025

How NASA is utilising AI technologies on Earth and in space

David Salvagnini, Chief Synthetic Intelligence Officer at NASA, spoke to The Innovation Platform Editor Georgie…

December 17, 2024

You Might Also Like

AMD logo on office
Global Market

AMD launches on-prem AI chip, previews higher-end systems at CES

By saad
Engineer
Global Market

AI, edge, and security: Shaping the need for modern infrastructure management

By saad
AWS logo on wall
Global Market

AWS hikes prices for EC2 Capacity Blocks amid soaring GPU demand

By saad
Portrait of Two Diverse Developers Working on Computers, Typing Lines of Code that Appear on Big Screens Surrounding Them. Male and Female Programmers Creating Innovative Software, Fixing Bugs.
Global Market

At CES, Nvidia launches Vera Rubin platform for AI data centers

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.