Jump to content

Unix Intro: Difference between revisions

mNo edit summary
Line 79: Line 79:
The command 'ls' simply lists all your files in the folder that you are in, One point, there can be 'hidden' files in a folder. Their names begin with a "." They aren't really hidden, it's just that ls won't see them, unless you tell it to look for them by using the command:
The command 'ls' simply lists all your files in the folder that you are in, One point, there can be 'hidden' files in a folder. Their names begin with a "." They aren't really hidden, it's just that ls won't see them, unless you tell it to look for them by using the command:


  ls -a
  ls -A


This will show ALL files in that folder. Another 'argument' that you can pass ls, is the l option, which gives a detailed listing of the files, and you can specify more than one argument to ls, or any other command for that matter. The command:
This will show ALL files in that folder. Another 'argument' that you can pass ls, is the l option, which gives a detailed listing of the files, and you can specify more than one argument to ls, or any other command for that matter. The command:


  ls -al
  ls -Al


will give a detailed listing of all files in your current folder, including 'hidden' files.
will give a detailed listing of all files in your current folder, including 'hidden' files.
ls -Alh
will show the same listings with "human readable" file sizes, instead of bytes.


=== cd ===
=== cd ===