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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:40:54+00:00 2026-05-21T04:40:54+00:00

Want to upgrade my file management productivity by replacing 2 panel file manager with

  • 0

Want to upgrade my file management productivity by replacing 2 panel file manager with command line (bash or cygwin). Can commandline give same speed? Please advise a guru way of how to do e.g. copy of some file in directory A to the directory B. Is it heavy use of pushd/popd? Or creation of links to most often used directories? What are the best practices and a day-to-day routine to manage files of a command line master?

  • 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-05-21T04:40:54+00:00Added an answer on May 21, 2026 at 4:40 am

    Can commandline give same speed?

    My experience is that commandline copying is significantly faster (especially in the Windows environment). Of course the basic laws of physics still apply, a file that is 1000 times bigger than a file that copies in 1 second will still take 1000 seconds to copy.

    ..(howto) copy of some file in directory A to the directory B.

    Because I often have 5-10 projects that use similar directory structures, I set up variables for each subdir using a naming convention :

    project=NewMatch
    NM_scripts=${project}/scripts
    NM_data=${project}/data
    NM_logs=${project}/logs
    NM_cfg=${project}/cfg
    
    proj2=AlternateMatch
    altM_scripts=${proj2}/scripts
    altM_data=${proj2}/data
    altM_logs=${proj2}/logs
    altM_cfg=${proj2}/cfg
    

    You can make this sort of thing as spartan or baroque as needed to match your theory of living/programming.

    Then you can easily copy the cfg from 1 project to another
    cp -p $NM_cfg/*.cfg ${altM_cfg}

    Is it heavy use of pushd/popd?

    Some people seem to really like that. You can try it and see what you thing.

    Or creation of links to most often used directories?

    Links to dirs are, in my experience used more for software development where a source code is expecting a certain set of dir names, and your installation has different names. Then making links to supply the dir paths expected is helpful. For production data, is just one more thing that can get messed up, or blow up. That’s not always true, maybe you’ll have a really good reason to have links, but I wouldn’t start out that way, just because it is possible to do.

    What are the best practices and a day-to-day routine to manage files of a command line master?

    ( Per above, use standardized directory structure for all projects.
    Have scripts save any small files to a directory your dept keeps in the /tmp dir, .
    i.e /tmp/MyDeptsTmpFile (named to fit your local conventions) )

    It depends. If you’re talking about data and logfiles, dated fileNames can save you a lot of time. I recommend dateFmts like YYYYMMDD(_HHMMSS) if you need the extra resolution.

    Dated logfiles are very handy, when a current process seems like it is taking a long time, you can look at the log file from a week ago and quantify exactly how long this process took, a week, month, 6 months (up to how much space you can afford). LogFiles should also capture all STDERR messages, so you never have to re-run a bombed program just to see what the error message was.

    This is Linux/Unix you’re using, right? Read the man page for the cp cmd installed on your machine. I recommend using an alias like alias CP='/bin/cp -pi' so you always copy a file with the same permissions and with the original files’ time stamp. Then it is easy to use /bin/ls -ltr to see a sorted list of files with the most recent files showing up at the bottom of the list. (No need to scroll back to the top, when you sort by time,reverse). Also the ‘-i’ option will warn you that you are going to overwrite a file, and this has saved me more than a couple of times.

    I hope this helps.

    P.S. as you appear to be a new user, if you get an answer that helps you please remember to mark it as accepted, and/or give it a + (or -) as a useful answer.

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

Sidebar

Related Questions

I want to upgrade my web application to the latest JSF Mojarra (2.1.9 as
I want to upgrade my current code which is constantly sql injected with PDO.
I have project I want to upgrade to .Net4 and it use BackgroundCopyManager.dll. Anyone
What is the best option if I want to upgrade old C-code to newer
So, I want to upgrade my development team to VS2008. As an enterprise, we
I have a project made with PhoneGap 1.1. I don't want to upgrade to
For IE7 users, I want to put in some specific Please upgrade now banner.
want to open pdf file when a user clicks on hyperlink shown in gridview
I want to parse a timestamp from a log file that has been written
hi i want to upgrade the version of compact framework in my htc touch

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.