Linux Shell Scripting - Part 1

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
36,743
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 18, 2010

In this video I will be showing you how to make your own shell script using Vim editor. The first example I make a script that echos "Hello User". The second example I make a script that updates ubuntu. Please comment, rate, and subscribe! Thanks I appreciate it.

    +1'd by 1 people
  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (H4x0r18)

  • 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.

  • 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. :)

see all

All Comments (93)

Sign In or Sign Up now to post a comment!
  • @cyborg9800 i think you should use vi instead of vim i.e. vi text1.sh.........let me know if it works

  • @beeregas you can use apt-get instead.

  • Thanks alot.

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

  • @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.

  • 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

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