Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.37
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby34 /
share /
ruby /
irb /
command /
Delete
Unzip
Name
Size
Permission
Date
Action
backtrace.rb
262
B
-rw-r--r--
2026-04-07 16:51
base.rb
1.23
KB
-rw-r--r--
2026-04-07 16:51
break.rb
254
B
-rw-r--r--
2026-04-07 16:51
catch.rb
254
B
-rw-r--r--
2026-04-07 16:51
cd.rb
1.56
KB
-rw-r--r--
2026-04-07 16:51
chws.rb
826
B
-rw-r--r--
2026-04-07 16:51
context.rb
405
B
-rw-r--r--
2026-04-07 16:51
continue.rb
259
B
-rw-r--r--
2026-04-07 16:51
debug.rb
2.26
KB
-rw-r--r--
2026-04-07 16:51
delete.rb
256
B
-rw-r--r--
2026-04-07 16:51
disable_irb.rb
292
B
-rw-r--r--
2026-04-07 16:51
edit.rb
1.65
KB
-rw-r--r--
2026-04-07 16:51
exit.rb
257
B
-rw-r--r--
2026-04-07 16:51
finish.rb
255
B
-rw-r--r--
2026-04-07 16:51
force_exit.rb
267
B
-rw-r--r--
2026-04-07 16:51
help.rb
2.87
KB
-rw-r--r--
2026-04-07 16:51
history.rb
1.09
KB
-rw-r--r--
2026-04-07 16:51
info.rb
252
B
-rw-r--r--
2026-04-07 16:51
internal_helpers.rb
795
B
-rw-r--r--
2026-04-07 16:51
irb_info.rb
1.14
KB
-rw-r--r--
2026-04-07 16:51
load.rb
2.01
KB
-rw-r--r--
2026-04-07 16:51
ls.rb
4.69
KB
-rw-r--r--
2026-04-07 16:51
measure.rb
1.35
KB
-rw-r--r--
2026-04-07 16:51
next.rb
251
B
-rw-r--r--
2026-04-07 16:51
pushws.rb
1.31
KB
-rw-r--r--
2026-04-07 16:51
show_doc.rb
1.17
KB
-rw-r--r--
2026-04-07 16:51
show_source.rb
1.84
KB
-rw-r--r--
2026-04-07 16:51
step.rb
251
B
-rw-r--r--
2026-04-07 16:51
subirb.rb
2.85
KB
-rw-r--r--
2026-04-07 16:51
whereami.rb
435
B
-rw-r--r--
2026-04-07 16:51
Save
Rename
require 'shellwords' require_relative "../color" require_relative "../source_finder" module IRB # :stopdoc: module Command class Edit < Base include RubyArgsExtractor category "Misc" description 'Open a file or source location.' help_message <<~HELP_MESSAGE Usage: edit [FILE or constant or method signature] Open a file in the editor specified in #{highlight('ENV["VISUAL"]')} or #{highlight('ENV["EDITOR"]')} - If no arguments are provided, IRB will attempt to open the file the current context was defined in. - If FILE is provided, IRB will open the file. - If a constant or method signature is provided, IRB will attempt to locate the source file and open it. Examples: edit edit foo.rb edit Foo edit Foo#bar HELP_MESSAGE def execute(arg) # Accept string literal for backward compatibility path = unwrap_string_literal(arg) if path.nil? path = @irb_context.irb_path elsif !File.exist?(path) source = SourceFinder.new(@irb_context).find_source(path) if source&.file_exist? && !source.binary_file? path = source.file end end unless File.exist?(path) puts "Can not find file: #{path}" return end if editor = (ENV['VISUAL'] || ENV['EDITOR']) puts "command: '#{editor}'" puts " path: #{path}" system(*Shellwords.split(editor), path) else puts "Can not find editor setting: ENV['VISUAL'] or ENV['EDITOR']" end end end end # :startdoc: end