Added: 1 year ago
From: H4x0r18
Views: 37,404
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (94)

Sign In or Sign Up now to post a comment!
  • Linux shell Scripting tutorial Pdf File

  • Thanks alot.

  • it says aptitude command not found? i checked to make sure i entered everything right. 

  • @beeregas you can use apt-get instead.

  • Why are you using /bin/sh instead of /bin/bash ?

  • Really nice dude thx for the help now im ready for my test ! ;)

  • Nice tut but i have 3 suggestions .

    Try using vi as your editor as its on almost every linux distro.

    also try at the end of your commands "/y" so it doesn't ask you to continue when updating.

    dunno if it was network issue but i'd update your /etc/apt/sources.list

  • nice tut ;) hope it get more complex with the time and who knows someday u may run a linux school :P

    #!bin/sh

    clear

    su apt-get insatll students

    fi !

    oh.. almost forgot i hope u will check the option of explaining what the /bin/sh library means...

  • interesting stuff

    look forward to more

    cheers dude

  • superb!!!

    now i have undestood for what are need the vim

  • ./nice-work we should start a course of linux , programming , hacking etc.. all in one and sold it

  • This is really good you help me a lot man thanks i gat a good grade on my homework thanks to you.

  • shell-scriptsS vim test1.sh

    this command doesn't work in my linux

  • @cyborg9800 Maybe you don't have vim installed? Try using nano, its much easier to use. Also, make sure you use chmod command to give it executable permissions. If you are still having issues, send me a message to my inbox with your issue and error and I'll help you out. Thanks.

  • @cyborg9800 Maybe try without the 'shell-scriptsS' as it is not part of the command, By the way it's not an S it's an $.

  • @cyborg9800 You can type $ vi test1.sh to open the file with the vi editor. Vim is better.

    But you will also have to learn how to use vi or vim.

  • @cyborg9800 i think you should use vi instead of vim i.e. vi text1.sh.........let me know if it works

  • that was really good, can you put little more complex shell scripting, i dont know wahts in my mind, just like to check...

    thanks

  • thanks a loottt!! nice work..

  • @goodideawins No problem! Thanks for watching.

  • Good introduction to the Linux shell.

  • @aikirich Thanks! Not much of an introduction I would say, but could give me ideas for a future video. :)

  • man thanks so much i thought u put the #!/bin/bash line in the command line not in an editor... :(

  • @Rottened23 No problem! Yeah, you aren't the only one thats for sure..

  • cool,man, thank you.

  • @321liuwei321 No problem anytime!

  • are you running ubuntu in a virtual machine..reason I ask is because I noticed in your term the frayed text to the right ...it happens to me in vm ware with my fedora vm don't know why but your tuts are pretty awesome...

  • @ozzyunoe Nope, this is when I had the ATI Radeon card that was screwing up my graphics for games and videos. It also delayed some of my audio. My apologizes.. I now have a Macbook Pro with Ubuntu 11.04 installed in Vmware Fusion.

  • @H4x0r18 you know what now that you mention it and I also remember you stated it in the tutorial but I have and amd/ati setup so guess that may be why :(oh well I gotta live with it but no biggie

  • @ozzyunoe Yeah I found AMD and ATI to be a pain in the neck with Linux so after these videos. I upgraded to a Intel 2.55ghz and Nvidia. Worked a lot better, but had to get a Mac for Apple experience for job related.

  • GREAT video!!!Thank u very much!!!!

  • @ptrsona1 No problem, make sure to watch part 2 :)

  • Very good vid. :DD Thumbs up from me ;D. But i have one question: Whats the name of the Theme that you're using ?

    Thanks and greeetz from AlphaMaenchen

  • @AlphaMaenchen0900 Thanks! I actually can't remember the theme, sorry. Its been awhile since I've been on Linux. I usually get my themes from Gnome Look website. If I could remember, I'd let you know.

  • @H4x0r18 Thanks for your answer. I´ll keep following your vids :DD.

    PS: Sorry for my bad english, but i´m only 14 xD

  • @AlphaMaenchen0900 No problem anytime!

  • Very nice presentation...but i'm not able to get the end result..when i run the script using ./filename from the bash shell in which i'm logged in as a superuser i get the following error:

    sudo: aptitude: command not found

    sudo: aptitude: command not found

    however an additional echo message is displayed. Please help.

  • @Dudedelhi81 Try typing the last results in the terminal before launching the script. You may have misspelled it or may not even have aptitude on your machine. May I also ask what Linux distro you are running?

  • yep followed that script and worked first time. cheers for that

  • @sirbobbyuk No problem!

  • @ubotstudios5 Huh?

  • I follow all step from this video and when i want to run the script i receive this "bash: ./test.sh: /bash/sh: bad interpreter: No such file or directory"

    What is goin on ?? Please a little help.

    The video is great :) UP from me :)

  • @Karamanec Make sure bash is installed and working and make sure the directory has permission to run a shell script. Also try running it like this "bash filename", replace filename with test.sh. Good Luck.

  • nice presentation

    

  • @velurinaidu123 Thank you!

  • Sounds interesting, i'm a beginner in Linux, and I can see a little application to this, per example, make a custom script to install basic stuff, such be able to read mp3 files, or install flash, or java... thanks for the video =D

  • Nice but you could explain some more detailed info like what that #!/bin/ actually does...

  • @pepi560 Thats simple. All that does is tell the script that you want to use bash language for the programming inside the script. So it basically just makes sure that it reads the commands that you program in the script.

  • @H4x0r18 oooh

  • Why does every script start with #!/bin/sh?

    i have scripted linux scripts in cygwin and there i write #!/bin/bash

  • @Biohazard000Labs When you use #!/bin/sh or #!/bin/bash, you are actually telling the script which interpreter you like to use. Bash shell has some specific functions that other shell does not have. In this tutorial, I prefer just to use sh cause I am more comfortable with it.

  • That tutorial was awesome ! I'm going to watch the 2nd one now

    ps. I used nano instead for vim, nevertheless it worked flawlessly

  • @christianninja29 Thanks!

  • How do you do the window closing and window opening flame thing? I have Ubuntu 10.10. I have looked in my effects but only have dream, glide 1 and 2 etc....but no flame or fire. Can you tell me how to get it?

  • @navajo5150 You need compiz and you also need the compiz plugins. I made a video on how to get your effects with compiz.

  • @H4x0r18 I don't have the add-ons window. I don't know if it's something that 10.10 doesn't come with or just something that needs to be downloaded. I have the compizconfig settings manager but the add-on thing isn't there. I have looked at all of the ubuntu forums but no luck. Anyway thanks for the help dude.

  • @H4x0r18 Never mind I found it I just had to download the compiz add ons from synaptic manager so I got it. Thanks again.

  • @navajo5150 Ok good! Glad you got it all figured out. Please message me anytime if you need help with anything else. Take care and have a Merry Christmas! :)

  • hello please help me when I put vim name.sh the program it doesn`t work and i see something like vim is in a package and I don`t understand why please I need help

  • @ARCANGELJERICHO You need to make it executable, the code is used many times in the video. create your file vim name.sh after your done coding and you save it, then just do a sudo chmod +x name.sh. Make sure you are in the same directory as everything else or it won't work.

  • Thanks dude ... really helpful :)

  • @superflex007 No problem anytime.

  • Than

  • Thank you very much. Im working on it now. Have you ever heard of element K? I dont really like it and I am trying to find a way that I can run a linux flavor without installing it onto my desktop or laptop. I keep hearing to do it virtually but I just never have done that either so I wouldnt know where to start. Any advice?? And thanks again.

  • @pillscam9881 No problem. No, I actually haven't heard of element K. As for your Linux flavor without installing it, I'd say try installing either vmware or virtualbox and then install Linux. That way your not hurting yourself if something happens. Thats what I've always done when I wanted to test out new Linux distros or needed Windows for something. Good Luck!

  • H4x0r18 Thank you for your videos. can you also please send me a link of your desktop. Greatly appreciate it.

  • Im trying to do a script. I was told to use vi. Do I need to make a new directory in order to make a script or can I just go ahead and jump right into the editor and start creating my script? I am doing this for one of my networking classes but I am really new to this operating system so I need help.

  • @pillscam9881 Yeah you can I was just making it more organised. Assuming you open terminal to the home directory, it should save the file in your home directory.

  • hey, thanks a lot for the videos! I really like your desktop image. Can you please send me the link for it. thanks !! :)

  • @Tigranchius Check your inbox. Sent you a pm.

  • @H4x0r18 Many thanks indeed !! :)

  • @H4x0r18,

    thanks for asking... Really, i wanted to know if you could recommend a very good book( preferably ebook in pdf ) for beginners in shell scripting. Also, i found you video very helpful and it sure makes me taste for more...

  • @bazighk My networking professor told me to read "Classic Shell Scripting" by O'Reilly. I bought it and its very nice book! If you would like to know what other books I recommend, add this part at the end of youtube url to watch my other youtube video /watch?v=SuDHoM8z4Kk

  • @H4x0r18

    Thanks for the swift reply. Still trying to search for free pdf copy of O' Reilly book online I couldn't view the new link u talked about after adding to the previous one. Could u send the entire URL in ur reply?

  • @bazighk No, Youtube doesn't let you share url links for some reason. Just buy a book or ebook online. Its not too expensive. I picked mine up at a local Barns and Nobles.

  • How do I get flames like yours??

  • @riffsista I made a video for compiz, you can watch it here watch?v=ceyUa01Yztw Thanks.

  • what linux is this ? im a noob! I want to get linux for server hosting but dont know which

    Linux is best.. Thanks! good vid!

  • @EvolutionXEngine I am using Ubuntu for this tutorial. There is no "best" linux. Its just a matter of taste and personal experience. Everyone has their own favorite linux distro.

  • @EvolutionXEngine I think it`s Ubuntu

  • @SuperDesire85 Yes its Ubuntu.

  • How can we comment on the video card based on you using a text editor?

    anyway anyone starting a project should be aware that bash is very very very basic and limited. You must know it because the whole of linux rests on it but a lot of features are not implemented (look up bash and arrays) and there are peculiarities which are counterintuitive such as:

    B=3

    A=$B

    where A and B are variables is likely to cause errors unless you deal with it as an exception but once you start making exceptions...

  • @H4x0r18 Thanks for the friend request. Feel free to pick my brain anytime you like. I will be more then happy to provide you with any help you need in the networking administration area. Or anywhere really. lol. Just let me know. Also I wanted to speak with you on some projects of mine, perhaps we can help each other :)

  • Great Video. Endless possibilities with this. I Watched both part 1 and 2. Both Great. Thank you. I'm a Network Admin and Scripting helps automate a ton of Network Tasks..

    I build home Security Alarms and Voip PBXs. I Use scripting for various events on each of them. Helps bigtime. Again, so many options, you can write scripts to run other scripts for different functions and pretty much make your own programs. All you need is a handful of commands and an imagination. Great place to start here

  • @servprosolutions Thats awesome man! Yeah I'm still in College going for my Bachelor's Degree in Network Adminstration. Writing and automating scripts definitely helps a lot. Thanks for your comments!

  • very good! cheers michael :wq

  • great video.  good stuff to know.

  • @simplelife1021 Thanks man, I appreciate it!

  • @H4x0r18

    hi

  • @bazighk Hello, hows it going?

  • @TheLinuxWizKid Thanks for the comment! I try my best. :)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more