The Linux terminal it is a powerful tool from which we can do anything we want; in the next article, I will introduce them to this tool, explaining to the novices the main commands to defend ourselves and move correctly through the different directories of our operating system.
the orders or orders which I show below, are the most basic that a user of Linux should know.
Commands for file handling
- cd – change directory, to return to previous directory we will use cd followed by a space
- ls – list the contents of the current directory
- cp – copy
- chmod – change the permissions of a directory or file
- chown – change the owner of a file or directory
- df – shows us the free space on our disk
- du – shows us the disk space used
- find – helps us to search for a specific file
- gzip – unzip a file in this format
- mkdir – creates a new directory for us
- more – shows the contents of a file
- mount – mounts a drive or partition on the file system
- mv – move or rename a file
- rm – delete a file
- rmdir – delete a directory or folder
- tar – to pack or unpack tar files
- umount – to unmount a file system drive or partition.
Whenever we use the terminal, we must respect the spelling, and place the commands and directories or files respecting their names, With accents capital letters and the lowercase.
Practical exercise: create a new folder on the desktop, rename it, move it to another directory and delete it
First of all it will be to open a new terminal and type ls, With this report the directory content to us home:
Next we will type cd Desktop to enter the Desktop, and mkdir proof to create a folder called test:
You will now rename to newFor this we will type mv new test:
Now we will move it to the Downloads directory for example, for this we will type mv nova / home / pakomola / Downloads:
Now to finish we will delete directory with the order rmdir nova:
As you can see it is a very simple process and we will go with it familiarizing with the terminal of our Linux, as well as we will understand, for example, what is actually happening when cwe ream, copy, or move a folder or directory from the convenience of the graphical interface.
More information – Entering basic commands in the terminal