Help - Search - Members - Calendar
Full Version: help :) PLEASE
Linuxhelp > Support > Programming in Linux
dumbnewbie123
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?
michaelk
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
dumbnewbie123
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.
michaelk
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
dumbnewbie123
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?
michaelk
Really...
www.cyberciti.biz/tips/howto-write-shell-script-to-add-user.html
www.cyberciti.biz/faq/howto-linux-add-user-to-group/
dumbnewbie123
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!!!!!!!!!!!!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.