Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Programming in Linux _ help :) PLEASE

Posted by: dumbnewbie123 Apr 13 2015, 10:21 AM

I have read through various books but still have difficulty linking very simple commands together. Can someone, in really simple terms, explain the effects of these commands? Any help would be much appreciated.
- ls l grep D
What effect would other letter have other than D?
- How id ls > list different to ls >> list?
- What are the effects of these cd commands?
cd / etc
cd /
cd~
-How would I create a new directory off my root directory?
-How would I create a new text file and store a few sentences in it?
-How would I install the programme TREE from the command line, and use output redirection to explain what it does?
-There is a line that looks like this:
-rwxr-xr-x 1 root root 920788 Mar 28 2013 bash
What does each bit mean?
-What is the purpose of the bin directory?
-How do I assign users a group?
-How could I plan, write and test a shell script that could automate the task of creating new users and assigning them into groups.
-How could have these tasks been done in a computer windows system?

Posted by: michaelk Apr 13 2015, 08:28 PM

Please do not ask others to do your homework for you. Most of the questions can easily be found by searching the internet.

Here are a few hints....

This will explain about pipes. www.linfo.org/pipe.html
And grep www.cyberciti.biz/faq/howto-use-grep-command-in-linux-unix/
And redirects guru99.com/linux-redirection.html
And cd computerhope.com/unix/ucd.htm

Posted by: dumbnewbie123 Apr 14 2015, 08:57 AM

QUOTE (michaelk @ Apr 14 2015, 01:28 AM) *
Please do not ask others to do your homework for you. Most of the questions can easily be found by searching the internet.

Here are a few hints....

This will explain about pipes. www.linfo.org/pipe.html
And grep www.cyberciti.biz/faq/howto-use-grep-command-in-linux-unix/
And redirects guru99.com/linux-redirection.html
And cd computerhope.com/unix/ucd.htm


Thanks for your help. It's not for homework but extra research for a raspberry pi project. Your links were very helpful.

Posted by: michaelk Apr 14 2015, 10:42 AM

Here are some more references that might be a little out of date but covers the basics.

www.tldp.org/
rute.2038bug.com/index.html.gz
www.linux.com/learn/tutorials/309527-understanding-linux-file-permissions

Posted by: dumbnewbie123 Apr 18 2015, 07:46 AM

QUOTE (michaelk @ Apr 14 2015, 03:42 PM) *
Here are some more references that might be a little out of date but covers the basics.

www.tldp.org/
rute.2038bug.com/index.html.gz
www.linux.com/learn/tutorials/309527-understanding-linux-file-permissions


Thank you again.
I have now found all the answers to the questions with your help.
The only thing that I am having trouble with now, is the shell script.
I have to write a shell script that could automate the ask of creating new users and assigning them to groups.
I have already read about creating shell scripts on linuxcommand, but still need
a nudge in the right direction. Any tips?

Posted by: michaelk Apr 18 2015, 11:36 AM

Really...
www.cyberciti.biz/tips/howto-write-shell-script-to-add-user.html
www.cyberciti.biz/faq/howto-linux-add-user-to-group/

Posted by: dumbnewbie123 Apr 21 2015, 09:23 AM

QUOTE (michaelk @ Apr 18 2015, 04:36 PM) *
Really...
www.cyberciti.biz/tips/howto-write-shell-script-to-add-user.html
www.cyberciti.biz/faq/howto-linux-add-user-to-group/


THANK YOU SOOOOOO MUCH!!!!!!!!!!!!

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)