Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop

    First bash script

    Linux
    bash scripting linux
    4
    8
    932
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • binurayeshan
      binurayeshan Linux Help last edited by

      bash script file හදාගන්න විදිය..

      ඔයාගේ Terminal එක open කරන්න.
      ඒකෙ මෙන්න මේ command ටික දෙන්න -

      cd Desktop  #මේ කියන්නෙ ඔයාගෙ Desktop directory  එකට යන්න කියල 
      mkdir bash #මේ කියන්නෙ bash කියල folder එකක් හදන්න කියල 
      cd bash #මේ කියන්නෙ ඔයාගෙ bash කියල හදපු folder එකට යන්න කියල 
      touch ex1.sh #මේ කියන්නෙ ex කියන නමෙන් file එකක් හදන්න කියල ඒකෙ extension එකට මම දෙන්ව .sh කියල මොක්ද අපි හදන්නෙ bash file එකක් හින්ද
      

      දැන් ඔයාගෙ bash file එක හදල ඉවරයි. දැන් ඔයාට script එක ලියන්න පුලුවන්. දැන් ඔයා ඒ හදපු bash file එක sublime text හරි text editor එකක හරි open karaganna.

      #!/bin/bash 
      
      echo "Hellp bash"
      

      දැන් ඔයාගෙ terminal එකට ආයිත් ගිහින් මෙන්න මේ command ටික දෙන්න

      chmod +x ex1.sh  #මේ කියන්නෙ මේ file එකට  executable permission දෙන්න කියල
      ./ex1.sh #දැන් ඔයාට මේ file එක run කරන්න පුලුවන්
      
      Nubelle 1 Reply Last reply Reply Quote 4
      • Nubelle
        Nubelle Web Development @binurayeshan last edited by

        @Binura-Yeshan-Samarawickrama patta thanks mchan

        binurayeshan 2 Replies Last reply Reply Quote 0
        • root
          root Linux Help last edited by

          meka windows walth karana widiya danna bro. windows users la godak innawane

          binurayeshan 1 Reply Last reply Reply Quote 0
          • Rosen Graphicz
            Rosen Graphicz last edited by

            Elaaaaaaaaa

            1 Reply Last reply Reply Quote 0
            • binurayeshan
              binurayeshan Linux Help @root last edited by

              @root මම දැන් දන්න තරමින් windows 10 වලට shell script එක දුන්න

              root 1 Reply Last reply Reply Quote 0
              • binurayeshan
                binurayeshan Linux Help @Nubelle last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • binurayeshan
                  binurayeshan Linux Help @Nubelle last edited by

                  @cody said in First bash script:

                  @Binura-Yeshan-Samarawickrama patta thanks mchan

                  thanks bro

                  1 Reply Last reply Reply Quote 0
                  • root
                    root Linux Help @binurayeshan last edited by

                    @Binura-Yeshan-Samarawickrama

                    widnows wala ta danna. godak aya dan use karanne windows 10

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post

                    1
                    Online

                    3.6k
                    Users

                    1.3k
                    Topics

                    5.3k
                    Posts

                    • Privacy
                    • Terms & Conditions
                    • Donate

                    © Copyrights and All right reserved Lanka Developers Community

                    Powered by Axis Technologies (PVT) Ltd

                    Made with in Sri Lanka

                    | |