Class Lt
In: lib/linux-tools.rb
Parent: Object

Methods

cat   cd   chmod   cp   date   df   du   kill   ls   mkdir   mv   passwd   ps   pwd   rm   rmdir   who   whoami  

Public Class methods

[Source]

# File lib/linux-tools.rb, line 12
  def self.cat
    puts "please enter the filename"
    file = gets
    system("cat "+file)
  end

[Source]

# File lib/linux-tools.rb, line 6
  def self.cd
    puts "this function is currently not operational"
    dir = gets
    system("cd "+dir)
  end

[Source]

# 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

[Source]

# File lib/linux-tools.rb, line 26
  def self.cp
    puts "please enter the source and destination"
    file = gets
    system("cp "+file)
  end

[Source]

# File lib/linux-tools.rb, line 32
  def self.date
  end

[Source]

# File lib/linux-tools.rb, line 35
  def self.df

  end

[Source]

# File lib/linux-tools.rb, line 39
  def self.du

  end

[Source]

# File lib/linux-tools.rb, line 43
  def self.kill
  end

[Source]

# File lib/linux-tools.rb, line 2
  def self.ls
    system("ls")
  end

[Source]

# File lib/linux-tools.rb, line 46
  def self.mkdir
  end

[Source]

# File lib/linux-tools.rb, line 49
  def self.mv
  end

[Source]

# File lib/linux-tools.rb, line 52
  def self.passwd
  end

[Source]

# File lib/linux-tools.rb, line 55
  def self.ps
  end

[Source]

# File lib/linux-tools.rb, line 58
  def self.pwd
  end

[Source]

# File lib/linux-tools.rb, line 61
  def self.rm
  end

[Source]

# File lib/linux-tools.rb, line 64
  def self.rmdir
  end

[Source]

# File lib/linux-tools.rb, line 67
  def self.who
  end

[Source]

# File lib/linux-tools.rb, line 70
  def self.whoami
  end

[Validate]