LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-14-2017, 05:09 PM   #16
Abdulmalek97
LQ Newbie
 
Registered: Jul 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by Abdulmalek97 View Post
I am learning the commands and it is going great. This is an obstacle which I could not figure it out from other forums and online. trying to learn chmod command by doing the following

problem number 1:
1-I can't execute test.sh after doing the following.

echo "shit happens" > test

N.B: using Kali Linux
the problem now I discovered that "shit" is not an actual linux command. and if I replace it with echo so it becomes:

echo "echo happens" and complete the rest, it would have worked perfectly. Thanks, everyone and sorry for all my stupid questions. You guys are a great community
 
Old 07-14-2017, 05:19 PM   #17
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,620
Blog Entries: 11

Rep: Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657
I did not mean to discourage you, in fact I want to encourage you!

But as in all things, you must learn basic skills before moving to advanced. You learn to walk before learning to ride a bicycle, and you learn drive a family car before moving on to heavy transports or formula racers.

It is great that you want to learn ethical hacking, in fact ethical everything! But you need to have mastery of the machine and the operating system concepts before you can understand the hacking part, even if you are well equipped ethically!

One basic concept you seem to be missing is the "file" and how commands and data are put into them and then used. The Rute link above is an excellent resource if you start at the beginning and work your way through. It even includes an early section on Files and Commands.

ANd a word about learning by video - the only way to learn programming and the necessary text manipulation skills is with fingertips on keyboard! There is no substitute for that, and you can't copy/paste an example from even the best video tutorial! Educational video certainly has its place, but probably not as the primary source for programming knowledge and examples. Read, read, read and type, edit, play! The only way to learn it!

Good luck!
 
1 members found this post helpful.
Old 07-14-2017, 05:21 PM   #18
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,505

Rep: Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113
I don't have a clue without watching the video and seeing exactly what commands were typed in the console. No genius and no tricks, just learned by reading the guides, books and doing.
 
Old 07-14-2017, 05:24 PM   #19
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,620
Blog Entries: 11

Rep: Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657
Quote:
Originally Posted by Abdulmalek97 View Post
the problem now I discovered that "shit" is not an actual linux command. and if I replace it with echo so it becomes:

echo "echo happens" and complete the rest, it would have worked perfectly. Thanks, everyone and sorry for all my stupid questions. You guys are a great community
That is not the reason it did not work - check the location of quotes, for one thing. But the answer lies in the knowledge available in the previously linked documents, please use them.

That is also not really an appropriate expression in polite company. Please remember that LQ has users of all ages and backgrounds and adjust your examples' language to be suitable for them all - thanks!

Last edited by astrogeek; 07-14-2017 at 05:29 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding commands to a limited shell program khoh Programming 3 04-04-2011 09:50 AM
How to process billions of small files using Bash shell commands with limited memory? Osirix Linux - Newbie 1 05-26-2010 10:07 PM
Limited 'sudo' commands Casket Linux - Security 1 10-23-2007 02:05 AM
Limited permission on FTP user stefane321 Linux - Security 3 03-04-2005 07:21 PM
Limited Commands on RH9 with full install PenguinPwrdBox Red Hat 4 10-10-2003 08:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration