2018-11-05 20:03:04 +00:00
|
|
|
---
|
|
|
|
layout: page
|
2018-11-08 14:10:36 +00:00
|
|
|
category_title: Basic commands
|
2018-11-08 19:52:08 +00:00
|
|
|
category-page: basic
|
2018-11-08 08:21:27 +00:00
|
|
|
tags: directory list
|
2018-11-05 20:03:04 +00:00
|
|
|
author: Claudio Maggioni
|
|
|
|
title: LS
|
2018-11-08 08:06:13 +00:00
|
|
|
next-page: pages/cmd/basic/cd.html
|
2018-11-05 20:03:04 +00:00
|
|
|
---
|
2018-11-08 08:06:13 +00:00
|
|
|
|
2018-11-05 20:03:04 +00:00
|
|
|
<p>The ls command is used to list files</p>
|
|
|
|
<ul>
|
|
|
|
<li>Item 1</li>
|
|
|
|
<li>Item 2</li>
|
|
|
|
<li>Hello</li>
|
|
|
|
</ul>
|
|
|
|
{% highlight ruby linenos %}
|
|
|
|
def show
|
|
|
|
puts "Outputting a very lo-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-ong lo-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-ong line"
|
|
|
|
@widget = Widget(params[:id])
|
|
|
|
respond_to do |format|
|
|
|
|
format.html # show.html.erb
|
|
|
|
format.json { render json: @widget }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
{% endhighlight %}
|