Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9242825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:40:03+00:00 2026-06-18T08:40:03+00:00

I am trying to completely understand a Cygwin alias command that is in .bash_profile.

  • 0

I am trying to completely understand a Cygwin alias command that is in .bash_profile. It works just fine. But, I need to understand it so that I can use it in other alias commands or perhaps in other command lines in general. The command is:

alias lf="ls -l | egrep -v '^d'"

I understand all of the command except the ^d that is included here. I know how to use alias, basic Unix commands, piping, ls, egrep and other general cases. I also understand the process of substitution. I just don’t understand the ^d itself.

More than just explaining that particular construct, it would really help if you could refer me to a site that explains the general usage of it. Google and I don’t seem to see eye-to-eye regarding my searches regarding it.

Also, can you tell me if there is some way to “echo” a command like this so that you can see it as it is processed? It would help me diagnose such a question in the future.

Thanks…RG

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:40:04+00:00Added an answer on June 18, 2026 at 8:40 am

    ls -l output starts from d for directories

    ‘^d’ is a regular expression that matches symbol ‘d’ at the beginning of the line

    -v switch tells egrep to exclude lines matching regular expression

    Thus we filter out ‘ls -l’ output to exclude directories

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to understand remote services at the moment and everything works fine, i
I'm trying to modify an AHK script I like but don't quite completely understand.
I'm completely new to the javascript and ajax world but trying to learn. Right
I am completely a newbie in continuous integration but I am trying to learn
Just a warning: I'm completely new to Java and am trying to teach myself
I am trying to make asynchronous calls using xmlhttprequest object so it completely works
I completely understand the concept of expression trees, but I am having a hard
Completely new to Objective-C, trying to find out when I need to alloc and
After several months of coding in Objective-C, I completely understand when I need an
I am trying to understand architecture of Spring MVC. However, I am completely confused

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.