Linux commands

ls - List Files

Think of ls as the command to see what’s in a folder. It lets you look at the files and folders wherever you are on your computer.

  • : Just typing shows you the names of all files and folders in the current location.

  • : Adding a path will list files in that specific folder.

  • Options:: Gives a detailed view with info on who owns the file, its size, and when it was last changed.: Also shows hidden files, which usually start with a (dot).: Combines detailed info with easier-to-read file sizes (e.g., for 10 kilobytes).

mkdir - Make Directories

is how you create a new folder (directory) to organize your files.

  • : This makes a folder with the name you give it in the current location.

  • : This option lets you create multiple folders in one command, including any needed parent folders. So if you want to make a series of folders all at once, this is handy!

pwd - Show Your Current Location

is the command to see where you are in your computer’s folder structure. It shows the full path from the root to your current folder.

  • : Simply type this, and it will display the full path of your current folder, like , so you always know where you are.

To view or add a comment, sign in

Others also viewed

Explore topics