Mega Code Archive

 
Categories / Ruby / File Directory
 

Find out what the current directory is with Dir pwd

puts Dir.pwd Dir.chdir("/usr/bin") puts Dir.pwd