Inspiration from Kernel Masters

This is to showcase what I've learnt from Linux for Programmers Session. I have gained knowledge on navigating the file systems on Linux.

I feel very confident to have taken this session. It was like revising up my basics.

These are the things I have learnt from this task:

I have selected the session of navigating the file system. We should open up the command terminal to know the detailed description of how navigation of file systems work We see this, root@localhost:~# Root indicates that you are an user signed into this directory You are in localhost ~ is like referring you are in all users home directory and can start writing commands.

Commands

First command is ls, which lists all the files in the root directory cd - stands for changing the directory cd .. - goes to previous directory You can add dots after cd to go to the level you need to reach
If you see, root@localhost:~# It simply means that you are in highest possible diectory and everything is stored. Now if you give ls, you can see all the list of directories that are in your linux machine. bin - contains user executable files boot - files required to boot the operating system dev - stores information about hardware devices that are connected to this machine etc - contains local system configuration files with the computer home - home directory storage for user files. It's like an administrator media - mount external and movable media lib - library files opt - is for optional files sbin - system binary files are stored here which can be used by system administrator usr - shareable read only files tmp - temporary files that would delete up

KeyBoard Shortcuts

Up Arrow and Down Arrow Keys - Can help you check on previous commands and select it When entering directory name in command terminal, you can type 1st few letters and it reads the next letters automatically if the current folder or file name is in the current directory These shortcuts would help you to overcome retyping them mkdir- to make a new directory touch newfile.txt - this will create a new text file pwd - gives present workign directory cat filename.txt - to read a file cat >> filename.text - this command would prompt you to next line. It asks for adding text in the filename. You just have to write the text. To exit out of this command, press Ctrl_D my newfile.txt a - it will move the newfile.txt to a folder. mv helps in moving it from one place to other cp - helps in copying the data of one file to the other rm - helps in removing files or folder if no permission to delete you have to type: rm -d a rm *.txt - removes all the txt files in that current directory find - helps in finding out the file in current directory stated That was an overall basic list of commands to navigate file system in linux. It was indeed a good learning experience

I will now be focussing on advancing my knowledge further and gain good pratical exposure on it

Built With

Share this project:

Updates