dir_name = "/bin" Dir.open(dir_name) do |dir| dir.each do |d| if d[0] != "." puts d; end end end