---
# System prepended metadata

title: LF - Exercises 1

---

# LF - Exercises 1

##### 1. Run a couple of learned commands with the path shortcuts and explain what they do

###### Use `cd ~` to return to `home/user` in this case the user is "vagrant"

![](https://i.imgur.com/NjkgHVU.png)

###### Use path absolute to move to folder that you want for example `cd /var/log`

![](https://i.imgur.com/lYlyfsw.png)


##### 2. If you are in /var/log/anaconda dir and want to return to your user’s home, what’s a good shortcut to use?

![](https://i.imgur.com/VmPOGw2.png)


##### 3. Write a command to list ﬁle sizes in human readable format.
![](https://i.imgur.com/Frrrsta.png)


##### 4. How would you list all ﬁles inside a child directory?

![](https://i.imgur.com/ukRtsIN.png)



##### 5. Try ﬁle command with a regular ﬁle and with a directory, what info does it show? Do you see differences?

If you use "file" command with a file you can see what file's type it is but if you use that command with a folder you can see that it is a "directory" type

![](https://i.imgur.com/QJsj7sm.png)
