Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the skills of using Bash?

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the use of Bash skills of what related knowledge, the content is detailed and easy to understand, simple and fast operation, has a certain reference value, I believe you will have some gains after reading this article on the use of Bash skills, let's take a look at it.

Use "Wargames" to test BASH skills

This is an online game, so you have to connect to the Internet. These games can help you learn and practice Linux commands in a fun-filled game. Wargames is a collection of shell games, and each game has many levels. The next level can be accessed only by resolving the previous level. Don't worry! Each game provides clear and concise instructions on how to move on to the next level.

As you can see, there are many shell games listed on the left. Each shell game has its own SSH port. So, you must connect to the game through the local system configuration SSH, and you can find information on how to connect to each game using SSH in the upper left corner of the Wargames website.

For example, let's play the Bandit game. To do this, click the Bandit link on the Wargames home page. In the upper left corner, you will see the SSH information of the Bandit game.

As you can see in the screenshot above, there are many hurdles. To enter each level, please find the appropriate link in the left column of the stand-alone. In addition, there are instructions for beginners on the right. If you have any questions about how to play this game, please read them.

Now, let's click on it to enter level 0. On the next screen, you will get the SSH information for that level.

As you can see in the screenshot above, you need to configure SSH port 2220 to connect to bandit.labs.overthewire.org with a user name of bandit0 and a password of bandit0.

Let's connect to Bandit game level 0.

$ssh bandit0@bandit.labs.overthewire.org-p 2220

Enter the password bandit0.

The sample output would be:

After logging in, enter the ls command to view the content or go to the level 1 page to learn how to pass level 1, and so on. A list of recommended commands is available at each level. Therefore, you can choose and use any appropriate command to resolve each level.

I have to admit that Wargames is addictive and it's fun to solve every level. Although some levels are indeed challenging, you may need Google to know how to solve the problem. Give it a try. You'll love it.

Use "Terminus" to test BASH skills

This is another browser-based online CLI game that can be used to improve or test your Linux command skills.

Once you enter the game, you will see instructions on how to play the game. Unlike Wargames, you don't need to connect to their game servers to play games. Terminus has a built-in CLI where you can find instructions on how to use it.

You can use the command ls to view the surrounding environment, use the command cd location to move to a new location, return to the command cd.., interact with the world using the command less project, and so on. To know your current location, just type pwd.

Use "clmystery" to test BASH skills

Unlike the above games, you can play this game locally. You don't need to connect to any remote systems, this is a completely offline game.

Trust me, this guy is a fun game. According to the given instructions, you will play the role of a detective to solve a mysterious case.

First, clone the repository:

$git clone https://github.com/veltman/clmystery.git

Alternatively, download it as a zip file from here. Unzip and switch to the place where you downloaded the file. Finally, open the treasure chest by reading the instructions file.

[sk@sk]: clmystery-master > $lscheatsheet.md cheatsheet.pdf encoded hint1 hint2 hint3 hint4 hint5 hint6 hint7 hint8 instructions LICENSE.md mystery README.md solution

Here are the instructions for playing the game:

There's been a murder in Terminal City. TCPD needs your help. You need to help them figure out who committed the crime.

To find out who did it, you need to go to the mystery subdirectory and start working there. You may need to see all the clues to the crime scene (crimescene file). The police officers at the scene were very cautious, so they wrote everything down in the police officer's report. Fortunately, the police officer marked the real clue with the word "CLUE" in all capitals.

If you encounter any problems in, please open one of the prompt files, such as "hint1", "hint2" and so on. You can use the following cat command to open the prompt file.

$cat hint1 $cat hint2

To check your answers or find a solution, open the file solution in the clmystery directory.

This is the end of $cat solution's article on "what are the skills in using Bash?" Thank you for reading! I believe you all have a certain understanding of the knowledge of "what are the skills for the use of Bash". If you want to learn more, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report