Linux File System Structure

While initially discussion on the file system structure isn’t the most exciting part of Linux. Knowing how the Linux file system is structured will help you understand Linux and be a better Linux user and administrator. The Linux File system is different in that it has One Tree and One Root. There are no C: [...]

Navigating the Linux File System

Now that we know how the Linux File system is structured, we need to be able to move around or navigate. Before we can begin navigating we need to be able to list the contents of directories so that we can see where we can go. The command to list a directories contents. NAME ls [...]

Creating Directories and Files

Today we begin learning how to work with the file system. We will cover how to create directories and files. The command to create directories NAME mkdir – make directories SYNOPSIS mkdir [OPTION] DIRECTORY… Lets first change our working directory to the temporary directory /tmp: $ cd /tmp Lets now create directory called “level1″: $ [...]

Moving and Renaming Directories and Files

Now that we know how to create directories and files we need to be able to rename them and move them. In Linux the command to move and rename is the same ! command to rename and move directories and files NAME mv – move (rename) files SYNOPSIS mv [OPTION]… [-T] SOURCE DEST mv [OPTION]… [...]

Deleting or Removing Directories and Files

Now that we know how to create directories and files, we need to learn how to delete them. There are two commands for deleting or removing directories in linux. The command “rmdir” and “rm”. The “rmdir” and “rm” commands are unforgiving and there is no undelete. Kinda scary to think that once you delete something [...]

links or shortcuts in linux

Today we will cover links or in the Windows world, shortcuts. Linking lets you refer to a file or directory, and you can refer to file or directory using a different names. The command for creating a link in linux is the “ln” command. Linux has different types of links called symbolic links (soft links) [...]