Class | Lt |
In: |
lib/linux-tools.rb
|
Parent: | Object |
# File lib/linux-tools.rb, line 12 def self.cat puts "please enter the filename" file = gets system("cat "+file) end
# File lib/linux-tools.rb, line 6 def self.cd puts "this function is currently not operational" dir = gets system("cd "+dir) end
# File lib/linux-tools.rb, line 18 def self.chmod puts "Please input the name of the directory/file you want to execute chmod on" file = gets puts "Please enter the mode type either in numerical or alphabetic mode" mode = gets system("chmod "+mode+" "+file) end