Added: 2 years ago
From: peertop
Views: 12,338
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (34)

Sign In or Sign Up now to post a comment!
  • Comment removed

  • Why he typed on top "#!/bin/sh" for bash scripting.

    I think "#!/bin/bash" is correct line for bash scripting.

  • @mshemuni

    #! is sha-bang symbol

    /bin/sh is the (absolute) path to the interpreter program

    renders the script portable to non-Linux machines, though you sacrifice Bash-specific features

  • in backtrack u can just run a bla.sh without chmod RIGHT???

  • @REPODONE if you have run permissions to it then you can run it.

    seriously people, learn to crawl before you try to run(learn basic linux before trying to be leethaxor).

  • @JoxeAlavarado Vi is hard to use for me... I like that one better because the shortcuts are shown below.

  • This is so awesome... I did it in windows alot but Linux is made for this kind of amusement. This is so frikin awesome!!!12!!!?!@!!

    *head slpodes*

  • Learn to use VI EDITOR people!!

  • OS=red hat,

    how would I get a background in the terminal window?

    Nice vid by the way.

  • lols man dont bash on my scripts!

  • thanks man

  • thanks

  • Just wondering why u don't use the test command for if stmnt? I'm new to unix so just curious about a reason. Thx

  • Had a look at my script again and found that i had space when their should'nt have been. when i run it again it worked fine..good vid and music.

    Regards bob

  • I did as you did with the scripting and i run it but it didn't execute the lynx. instead it exited with the the comment "there is nothing else to do" above that is 'G' cannot be found

  • @sirbobbyuk

    Lynx is a program and not a command.

    try to install it before you run it.

    sudo apt-get install lynx

    if you use redhat or fedora. install it with yum .

    I use ubuntu and use apt.

  • @peertop yep i have install lynx, but im getting an error message stating [:14: missing]. I have checked the script against what you wrote and there does not seem to be an erro.

  • Cool, thanks for the video!

    Hope you gonna post more :)

  • nice stuff!

    and awesome layout ;)

  • is this BaSH script or just a typical shell script ?

    I am asking this because at the "shebang" definition you type #!bin/sh instead of /bin/bash.

  • @RestlessKingGR  the # is a comment, the kernal does not read that line.

  • awesome !!!

  • can someone please tell em who made the very first one of these please tell me and ill sub to yuor channels

  • how you make a background image?

    or what for a programm you use in the video?

    the nano command?

    or a diffrent programm

    Please Answer So Fast It Go!! =)

    greetz Headache videos =)

  • It's probably transparent into the wallpaper

  • and how i can doe so a transparent effect?

  • OS = Ubuntu

    Terminal = gnome terminal with transparenty on (look in the settings)

    image = current wallpaper

    nano = (terminal) texteditor

    capture program = reccordmydesktop

    So you have right, Its an debian system and lynx is an web browser for bash.

  • echo please select 1 or 2

    read number

    if [ "$number" = "1" ]; then echo "11111"

    elif [ "$number" = "2" ]; then echo "22222"

    else

    echo you did not select 1 or 2

    fi

  • nice vid man...

  • najs ;)

  • is this fedora?

  • Hes running a Debian based linux distrobution, but it is irrelevant for any of this except for installing lynx. Sh and Nano are both standard on all Linux distrobutions

  • put in the end of if at the bottom on your script echo please select 1 or 2 read number if [ "$number" = "1" ]; then echo "11111" else if [ "$number" = "2" ]; then echo "22222" else echo you did not select 1 or 2 fi fi
  • i was unable to get it to work, i did something similar to what you did im just making a simple case statement using a bunch of if statements, as follows: echo please select 1 or 2 read number if [ "$number" = "1" ]; then echo "11111" else if [ "$number" = "2" ]; then echo "22222" else echo you did not select 1 or 2 thanks for your help, im using backtrack3
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