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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:43:06+00:00 2026-05-13T12:43:06+00:00

What is the syntax for specifying a dynamic profile name in linux command? E.g.

  • 0

What is the syntax for specifying a dynamic profile name in linux command? E.g.

perl genhtml /home/$(usrProfile)/*

What is the syntax to replace usrProfile if it is dynamic?

Thanks.

EDIT: I’m running this in Windows Command line under cygwin.

UPDATE: I have tried doing the following:

$ECHO $HOME
chmod 444/home/~username/*

But I’ve gotten the error saying

No such file or directoryine 1: /home/Administrator
chmod: cannot access '/home/~username/*': No such file or directory

The only profile I have in the cygwin’s home directory is Administrator so the directory exists physically.

My goal is to be able to call the above command without worrying profile name either directly in a build script (MsBuild), or via cygwin’s bash command.

Thanks.

  • 1 1 Answer
  • 1 View
  • 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-13T12:43:06+00:00Added an answer on May 13, 2026 at 12:43 pm
    $ echo $HOME
    /home/username
    

    Edit:

    In your update, I’m assuming you’re not typing the dollar sign before the echo. Also, I would use lowercase for commands, even though they work under Cygwin – they won’t elsewhere. There needs to be a space after the permission setting. Plus, I doubt there’s a tilde in the actual username. And are you really sure you want to blindly set all the files to the same permission? What if there are existing files?

    echo $HOME
    chmod 444 /home/username/*
    

    What you probably really want to do is something more like:

    chmod 444 "${HOME}"/your_app_dir/*
    

    or

    chmod 444 "${HOME}"/some_specific_file
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What's the ObjectiveC syntax for specifying a protocol as an argument in a method?
I found the very useful syntax parser.add_argument('-i', '--input-file', type=argparse.FileType('r'), default='-') for specifying an input
This syntax works in FF <input data-bind=checked: isRequest, attr: { name: 'id_' + id
There seems to be no language syntax for specifying both a this() and a
When is the Path= xaml syntax required when specifying a binding to a property?
What is the syntax for specifying a primary key on more than 1 column
What is the web config syntax for specifying a WCF WebService Proxy's Default Target
Specifying the GLSL version gives a syntax error when using LWJGL. I haven't tried
Does anyone know the term for this form of command-line syntax notation? For instance,
I'd like to instantiate a class by name (a string) without specifying a namespace

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.