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 9198657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:20:16+00:00 2026-06-17T22:20:16+00:00

It is really cubersome to change directories using cd and the again do an

  • 0

It is really cubersome to change directories using cd and the again do an ls or an ll. I noticed that more than 80 % of the times, I am always doing a ll after my cd. So my question is how to write a c shell script to do this.
Whenever a cd is done, can the c shell be commanded to also do a ll automatically ?

  • 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-17T22:20:18+00:00Added an answer on June 17, 2026 at 10:20 pm

    No need for a script, just make a simple alias definition:

    • bash notation: alias cd="cd $1; ll "
    • csh notation: alias cd cd \!:1\; ll

    Note the leading space (” “) in the bash version, it prevents the result to be alias expanded again. So it prevents loops.

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

Sidebar

Related Questions

Really confused why the QR output using RcppArmadillo is different than QR output from
I'm trying really hard to learn vim after using TextMate for the last few
Really stupid question, sorry, but I can't find it on google (I'm sure it's
Really basic question I'm sure for some of you Java heads out there. I
Really quick jQuery question... I have this function: $(document).ready(function() { $('a#show1').click(function() { $('.item1').toggle(1000); return
Really simple question: From within GWT I want to forward the user away from
Many times I hear that F# is not suited to particular tasks, such as
I am preparing a web page with more data that can possibly be shown
I remember reading somewhere that to really optimize & speed up certain section of
I'd like to develop for Android but I don't really like using an IDE

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.