Difference between pages "Ls" and "Ramdisk"

From Linuxintro
(Difference between pages)
imported>ThorstenStaerk
 
imported>ThorstenStaerk
(New page: A Ramdisk in Linux can be created on the /tmp folder using the command mount -t tmpfs tmpfs /tmp -o size=512M In this case, the Ramdisk will be 512MB big.)
 
Line 1: Line 1:
ls is a [[command]] that list files in a given directory. If no directory is given, it lists the files in the current working directory:
+
A [[Ramdisk]] in Linux can be created on the /tmp folder using the command
<pre>
+
  mount -t tmpfs tmpfs /tmp -o size=512M
tweedleburg:~/svn/kdepim # ls
+
In this case, the Ramdisk will be 512MB big.
.emacs-dirvars      README.Kolab          kdgantt1          ktimetracker
 
.kateconfig          akonadi                kitchensync        lib
 
[...]
 
</pre>
 
 
 
= How to... =
 
 
 
== only list directories ==
 
  ls -d */
 
 
 
== Sort by date ==
 
List with the latest changed files below:
 
ls -ltr
 
 
 
== find out the free disk space ==
 
You do not use ls, but df:
 
[[df]] -h
 
tells you how much disk space is left.
 
 
 
== find out the size of a directory ==
 
You do not use ls, but du:
 
[[du]] -sh ''directory''
 
 
 
= See also =
 
* [http://unixhelp.ed.ac.uk/CGI/man-cgi?ls ls' man page]
 
* [[stat]] -- date of last access, change and modification
 
 
 
[[Category:Command]]
 

Revision as of 13:55, 20 December 2008

A Ramdisk in Linux can be created on the /tmp folder using the command

mount -t tmpfs tmpfs /tmp -o size=512M

In this case, the Ramdisk will be 512MB big.