How to write,compile and run RUBY in linux

Learn  how to write compile and run RUBY programming in Linux.This tutorial is for all those RUBY Programmers who are interested in developing some linux application using RUBY Program or Linux Users who are interested in learning RUBY Programming language to enhance their skills. here i have mentioned RUBY programming compiler, along with how to write ruby program in linux and how to compile and run it.

Step 1: Install Ruby Program Compiler.

[root@localhost ~]# yum install ruby* -y

 

Step 2: Write and save Ruby Program

 

[root@localhost ~]# cat > hacking.rb
puts " hell this is Ethical Hacking Tuition center"
puts " here you learn CCNA LINUX HACKING WORDPRESS "
puts "Special Batches For Cyber security and IPv6 "
puts "Ethical Hacking new batch is Starting From next WEEK"
[root@localhost ~]#

 

Step 3: Assign execute permission to your ruby Program.

 

[root@localhost ~]# chmod 755 hacking.rb

 

Step 4: Run the ruby  Program named hacking.rb

 

[root@localhost ~]# ruby hacking.rb
 hell this is Ethical Hacking Tuition center
 here you learn CCNA LINUX HACKING WORDPRESS
Special Batches For Cyber security and IPv6
Ethical Hacking new batch is Starting From next WEEK

 

 


Discover more from Learn Linux CCNA CCNP CEH CISSP CISA Penetration-Testing Bug Bounty IPv6 Cyber-Security Network-Security Online

Subscribe to get the latest posts sent to your email.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.