Difference between revisions of "Ls"

From Linuxintro
imported>ThorstenStaerk
(New page: ls list files in a given directory. If no directory is given, it lists the files in the current working directory: <pre> tweedleburg:~/svn/kdepim # ls .emacs-dirvars README.Kolab ...)
 
imported>ThorstenStaerk
Line 24: Line 24:
 
== list with the latest changed files below ==
 
== list with the latest changed files below ==
 
  ls -ltr
 
  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.

Revision as of 21:15, 20 March 2009

ls list files in a given directory. If no directory is given, it lists the files in the current working directory:

tweedleburg:~/svn/kdepim # ls
.emacs-dirvars       README.Kolab           kdgantt1           ktimetracker
.kateconfig          akonadi                kitchensync        lib
.krazy               akregator              kjots              libkdepim
.svn                 cmake                  kleopatra          libkholidays
CMakeCache.txt       cmake_install.cmake    kmail              libkleo
CMakeFiles           cmake_uninstall.cmake  kmailcvt           libkpgp
CMakeLists.txt       console                kmobiletools       libksieve
CMakeTmp             date.txt               knode              maildir
COPYING              dependency-graph.dot   knotes             mimelib
COPYING.DOC          doc                    kode               plugins
COPYING.LIB          icons                  kontact            strigi-analyzer
CTestTestfile.cmake  install_manifest.txt   kontactinterfaces  usability-quick-review.txt
MAINTAINERS          kaddressbook           korganizer         wizards
Mainpage.dox         kalarm                 korn
Makefile             kdepim-compat.h        kpilot
README               kdgantt                kresources

How to...

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.