X
X
X
X

Basic Linux Commands You Should Know

HomepageArticlesBasic Linux Commands You Should Know

We are here with the Basic Linux Commands You Should Know. So what are the codes that every Linux user should know? Here are the details you wonder!

Basic Linux Commands You Should Know - If you have Linux installed on your computer, there are some basic codes you should know for a more enjoyable experience. We have compiled these codes together with their explanations for you. Therefore, we strongly recommend that you take a look at this guide.

Basic Linux Commands You Must Know

Here are the basic linux commands you should definitely know!

Business

The ls command is used to list the contents in the current working directory, namely files and folders.

Mkdir

You can create a new folder with this command. Example usage; In the form of mkdir folder.

Pwd

Using this command, which is short for Print Working Directory, you can use it to find out where you are when navigating Linux directories.

CD

You can use it to change the directory you are in.

  • You can access the root directory with the cd / command.
  • You can access the home directory with cd.
  • You can access the upper folder with cd ...
  • With cd- you can return to the previous folder.

You can find the full path of a folder you want to go to using the cd command: cd / var / www / folder / request

Rm

The rm command, which stands for remove, is used to delete a file, as its name suggests.

Rmdir

You can use the rmdir command associated with the rm command above to delete an empty folder.

Cp

You can use the cp command to make a copy of a file.

  • The command "cp is okay volcano" creates a copy of the volcano file and gives this copy the name "complete".
  • If you write the command "cp -r is tamindir volcano", it copies the tamindir folder and gives it the name volcano.

Mv

You can use this command both to move files and to rename files.

Cat

You can use it to view the contents of a file. Example usage; cat filename.

Five Tips That Extend Computers Life!  -2nd

Tail

Displays the last part of the file you specified.

When you use it as "tail archive", it will display the last 10 lines of the archive file.

Less

You can use it to filter while viewing files. You can use it as "less filename".

Grep

You can search for patterns consisting of characters within one or more files.

Find

You can use it to find files. Example: find folder -name filename or find folder -iname filename

Tar

You can use it to create compressed archive files. For example; tar –xvf like arsiv.tar.

Gzip

Compresses the file you specify and converts it to .gz format. Sample; gzip -9 filename

You can use it to extract compressed files to the folder you specify.

  • unzip arsiv.zip --d directory

Help

You can see the list of shell commands. You can get help about the relevant command using the help command name.

Whatis

Shows a one-line description for a command.

Man

Using this command, you can access the usage details of any command. For example; When you enter the man ls command, you can see how the ls command is used.

Exit

You can use it to log out.

Ping

It sends ping packets to a remote server and reports the returned packets. You can use it as a ping host.

Who

The "Who" command shows the list of users currently logged on to the system.

That

With this command, which means Super User, you can get full authorized user access in the system. While you can perform all your operations as root with the "su -" command, it allows you to perform only that command as root with the "su –c" command.

Uname

You can also use this command to get information about your operating system.

  • uname –r: Shows the kernel version.
  • uname –s: Displays the system name.
  • uname –v: Displays the version of the operating system.
  • uname –a: Displays all the above commands and other uname commands.

Free

It shows the memory usage on your computer.

Df

Displays the used and available space on the hard drive and other storage devices in the system.

Ps

Used to show the properties of processes

Ball

Shows the applications running on the system.

Shutdown

As you can tell from the name, you can use it to shut down the system. You can also restart it with the command "shutdown –r now".

Makalemizle iİlgili Görüşlerini Belirtebilirsin


Bir Sorunuz mu Var?

Sorularınızı cevaplamayı bekleyen muhteşem bir ekibimiz var.
Bize Ulaşın.