The Command Line


Here are my instructions, how do I do it?

$ ls -l
drwxr-xr-x 5 cc eng 4096 Jun 24 16:51 action
drwxr-xr-x 4 cc eng 4096 Jun 24 16:51 comedy
drwxr-xr-x 6 cc eng 4096 Jun 24 16:51 drama
-rw-r--r-- 1 cc eng 0 Jun 24 16:51 genres.txt

The -l option lists files and directories as a table. Here there are four rows, with seven columns separated by spaces. Here's what each column means:

Access rights. These are actions that are permitted on a file or directory.
Number of hard links. This number counts the number of child directories and files. This number includes the parent directory link (..) and current directory link (.).
The username of the file's owner. Here the username is cc.
The name of the group that owns the file. Here the group name is eng.
The size of the file in bytes.
The date & time that the file was last modified.
The name of the file or directory.

Let's try out another option for the ls command.

Navigate to the comedy/ directory.


You should probably change your category to the Command Line instead of HTML & CSS @carly427.


Hi Carly,

Could you please give us a link to the exercise you're on so we can help you? Thanks :)

@amanuel2 I've moved it to the Learn the Command Line category :)



@carly427 Thanks for the link :)

First, the instructions want you to change directories to the comedy folder. Remember how to do that with the cd command? The cd command is used like this:

$ cd <directory>

(replacing <directory> with the actual directory name :wink:)

Then, once you're in the comedy directory, the instructions want you to list all of the files in there, with the-alt options, like this:

$ ls -alt

I hope this helps, please let me know if you've got any more questions :)


That did not work for me.


Wold you mind showing me a screenshot of what you're typing and what happens next?