Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello im sorry im new to Linux and am having a hard time with a couple things my teacher has asked of me to do
(A) *Write a shell script that prints the username and PATH for the current user (use environment variables).
*Write a script that takes a file name as its argument, check if this files does exist, and if it does then set the file to be executable by everybody.
*You may have to use man test to find what you need to make the if statement work for 2.
( Write a script that asks the user for two arguments
source directory
a file extension (like jpg, txt, doc, etc.)
and then delete all files of that extension in the directory
(C) Write a script that asks the user for two arguments
a user name
a password
and then create a user account with the above information.
If anyone can help me out that would be awesome... with one or all any help right now will be much help
thank you guyz
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread has been reported for closure.
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.