Get the App
SLTechnology News&Howtos  ›  Database  › 

Oracle Linux course by Ice Glass

Shulou Source: shulou.com Published: 2022-06-01 08:49:34 10月01日 Update

First lesson of getting started with Linux:

Why study Linux?

This is the first question I asked when I contacted Linux.

The answer I got at the time was that Linux was safer than any other system.

Well, for this reason, I began the journey of learning Linux.

Basic Linux terminal command

Entering the terminal of Linux, I will introduce you to some of the most basic system commands.

* to enter the terminal, click the right mouse button to select the option Open Terminal.

1.mkdir

Function: create a directory

What is a catalogue?

Explanation: the directory under Linux is actually the folder under windows.

The use of mkdir is very simple. Just enter the mkdir space and the name of the directory you want to create.

Example:

Mkdir firstday is here. I created a directory called firstday.

When you have created this firstday directory, many people will wonder why you can't see it.

Don't worry, now I will introduce you to the next order!

2.ls

Function: view the files in the current directory

Explanation: the ls command can view all files in any directory on the Linux system.

Usage: enter ls and enter

Example:

Ls

What a nuisance! This watermark blocks the ls I typed. I wish I knew it was ls.

Now we can look at the firstday directory we just created!

Okay, when we've created a directory, we need to know how to get into it.

3.cd

Explanation: the command to enter the directory.

Usage: enter the cd space and enter the directory you want to enter

Example:

Cd / firstday

All right, let's go to the firstday directory that we just created, and of course this is the directory we just created.

So there must be no files in it. We can check it out with the ls we just learned.

You can also use pwd to display our current path

4.pwd

Explanation: view the current path.

Usage: enter pwd and enter

Example:

Pwd

What we can see here is the firstday shown below.

We were under / this directory just now.

/ equivalent to the outermost directory, just like the C disk under the windows system.

Okay, when we create a directory, we can also create a file in that directory.

5.touch

Explanation: create a text file.

Usage: the name of the touch blank text file and enter

Example:

Touch Oracle or touch hello

Here we create two text files under the firstday directory, one called Oracle and the other called hello

When we enter the touch Oracle file, there is a passage in the middle, which we can ignore because Oracle is the name of a database.

So the system will give you a hint.

Comparison: mkdir and touch

Mkdir is the creation directory

Touch is to create a text file

When we have created the text file, we can use ls to look at the files in the previous directory.

I will keep updating some new learning materials for you every day from Monday to Friday!

Next class I will introduce you to some other basic system commands and editing commands!

The next lesson includes cp (copy), mv (move or rename), rm (delete), gedit (an editing command)!

Tags: Directories files commands systems examples explanations inputs text learning names spaces terminals functions paths facets contents including methods learning materials finished Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS NVidia Linux MariaDB Docker