Laughing Hyena
  • Home
  • Hyena Games
  • Esports
  • NFT Gaming
  • Crypto Trends
  • Game Reviews
  • Game Updates
  • GameFi Guides
  • Shop
Tag:

Linux

Kali Linux version 2025.2
Gaming Gear

This major Kali Linux update could change how ethical hackers break into networks -new tools, VPN IP visibility, and more!

by admin June 23, 2025



  • Kali Linux 2025.2 brings powerful new tools for experienced penetration testers
  • Offensive Security realigns Kali’s interface with MITRE ATT&CK – finally, structure meets hacking function
  • New BloodHound tools hint at deeper Azure and Active Directory targeting than ever before

The newest update to Kali Linux, version 2025.2, introduces over a dozen new tools alongside enhancements to user experience and platform support.

Offensive Security, the developers behind the Debian-based distribution, announced its general availability with a clear focus on aligning the system with the MITRE ATT&CK framework.

The restructured Kali Menu is now tailored to make tool discovery more intuitive, but whether this structural change leads to meaningful workflow improvement remains to be seen.


You may like

Included in the new release are 13 additional tools, many of which are specialized for advanced offensive operations.

Tools like azurehound for Azure directory data collection and bloodhound-ce-python, a Python ingestor for BloodHound CE, appear to target complex enterprise environments.

Meanwhile, binwalk3 expands firmware analysis capabilities, and bopscrk enables custom wordlist creation based on intelligent algorithms.

Some additions, such as crlfuzz, which is “a fast tool to scan CRLF vulnerability written in Go,” and donut-shellcode, which lets users “generate position-independent shellcode from memory and run it,” suggest the release continues to cater to skilled practitioners.

Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!

Kali Linux 2025.2 also adds chisel-common-binaries and ligolo-ng-common-binaries, both of which offer prebuilt binaries aimed at tunneling and pivoting, activities common in red teaming.

In terms of enumeration and lateral movement, tools like ldeep, described as “an in-depth LDAP enumeration utility,” and rubeus, focused on “raw Kerberos interaction and abuses,” contribute further.

While these tools may appeal to ethical hackers, the level of expertise required to operate them effectively can act as a limiting factor for beginners.

Among the most visible quality-of-life improvements is the integration of the new GNOME VPN IP extension, which allows direct viewing of the VPN IP address from the panel.

Though this feature is convenient, it is not spectacular, and it best remains a fringe addition.

This new update also supports GNOME 48 and KDE Plasma 6.3 desktop environments.

Raspberry Pi users now have a new update that combines some Raspberry Pi OS images, eliminating the need for a separate image for the Raspberry Pi 5.

This update also introduces Kali NetHunter CARsenal, a dedicated suite for automotive security analysis.

While it remains one of the best Linux distros for ethical hacking, some users may still prefer Linux alternatives that lean more toward security or integrate more seamlessly with network monitoring tools.

Via 9to5linux

You might also like



Source link

June 23, 2025 0 comments
0 FacebookTwitterPinterestEmail
Manage Linux Network Connections
Gaming Gear

How to manage Linux network connections via nmcli and the terminal

by admin June 14, 2025



We take graphical user interfaces (GUIs) for granted. They generally “just work” and we can largely go about our business without even thinking. The Linux networking GUI is very much now in this camp. We were there when networking with Linux was a chore, heck we remember setting up PPP to connect to the Internet via a modem, in Linux!

What happens when things go wrong? The GUI breaks down, or were left with just a Linux terminal? Perhaps we are installing Linux on a server with no GUI? In these circumstances we need to understand how to make, break and configure connections using the nmcli command.

The nmcli command is one of many command-line tools to manage your network connections, and in this how to we will use it to check the connections on a system, bring connections down (off) and up (on) and finally we shall create a static IP address.


You may like

Working with an Interface

Interfaces are our points of connection. They can be physical, for example Ethernet, or they can be radio based, Wi-Fi for example. Each interface has a unique name, to identify whether it is Ethernet or Wi-Fi. In the past these names were generic, eth0 for the first Ethernet connection and wlan0 for Wi-Fi. In more recent years, these interface names have changed to be more specific.

Our first task is to identify the available interfaces.

1. Open a terminal and list all of the available connection / interfaces. The nmcli command can be used on its own, but passing the -p option will produce a “prettier” output.

nmcli -p

(Image credit: Future)

2. The output for the previous command will show all of the connections / interfaces. To return just the active interface connections use this command. Again, using the -p option provides a clearer view of the output.

Get Tom’s Hardware’s best news and in-depth reviews, straight to your inbox.

nmcli -p dev status

(Image credit: Future)

3. Use this command to get the details of a specific connection. Remember to change the name of the connection to match the output of the previous command. There is a lot of output, and you can pipe the output of the command using grep to pick out specific details.

nmcli -p con show

(Image credit: Future)

4. Use this command to determine the default gateway for your connection. The default gateway is typically our home router, the hardware that enables us to connect to the Internet. The output should show the ipv4 and ipv6 gateway details.

nmcli -p con show | grep GATEWAY

(Image credit: Future)

5. To bring a connection down (disable / disconnect) use this command. This will disconnect your Linux device from the network. Remember to replace the connection name with your connection name.

nmcli -p con down

(Image credit: Future)

6. List the connections, this will show that your device is no longer connected to the network.

nmcli -p dev status

(Image credit: Future)

7. Bring the connection up using this command. Remember to change the connection name.

nmcli -p con up

(Image credit: Future)

Setting a static IP address

For many of us, a dynamically assigned IP address from our router is all we need to get online. What if we want to create a server? A server will need a static IP address to enable connecting devices to find it.

We’re going to use nmcli to modify the connection so that we have a specific IP address.

We’re using an Ubuntu LTS, but the instructions will also work on a Raspberry Pi running Raspberry Pi OS, or any other Debian / Ubuntu based machine.

1. Open a terminal and using nmcli set the connection details. The connection name is as we have used above. The required IP address is as per your requirements, but it should be within the range offered by the device. The gateway is typically the IP address of the router. The DNS server can be your router

nmcli connection modify “CONNECTION NAME” \
ipv4.addresses REQUIRED IP ADDRESS/24 \
ipv4.gateway YOUR GATEWAY \
ipv4.dns YOUR DNS SERVER \
ipv4.method manual

2. Bring the connection down. Remember to use your connection name.

nmcli -p con down

3. Now bring the connection back up. Remember to use your connection name.

nmcli -p con up

4. Check that the connection has been made correctly. The State column should show “connected”.

nmcli -p dev status

(Image credit: Future)

6. Check your IP address. Using the connection show command we pipe the output through grep, looking for “ipv4.addresses”.

nmcli -p con show <> | grep ipv4.addresses

(Image credit: Future)

7. Finally ping an IP address to ensure that your server can reach the outside world. You should see pings being sent within a few milliseconds, if there is a problem then the command will error. Press CTRL + C to end the ping command. We typically use Google’s DNS server IP address 8.8.8.8, but you can also use CloudFlare’s 1.1.1.1 or OpenDNS 208.67.222.123. Alternatively, you can ping a URL such as google.com.

ping 8.8.8.8

(Image credit: Future)

More Linux Tutorials

🐧 How To Dual Boot Linux and Windows 11

🐧 How to Create Custom Grub Menu Backgrounds for Linux Boots

🐧 How to Use Nohup to Run Linux Scripts Unattended

🐧 How To Find Large Files on Linux

🐧 How To Mount and Unmount Drives on Linux

🐧 How To Manage Users in Linux



Source link

June 14, 2025 0 comments
0 FacebookTwitterPinterestEmail
TAR compression
Product Reviews

Learn How to Archive Files in Linux with TAR

by admin June 11, 2025



Compressing files is a quick and easy way to archive and group files. There are many occasions where archives are useful, a driver download, file backup or Linux distro download. In this how-to we’ll look at various commands to create and extract data from compressed and uncompressed archive files.

Whilst you become accustomed to these commands it’s good to work with example test files and directories and you should take extra care to ensure you are carefully following the instructions.

All the commands in this how-to will work on most Linux machines. We’ve used an Ubuntu LTS install but you could run this how-to on a Raspberry Pi. All of the how-to is performed via the Terminal. You can open a terminal window on most Linux machines by pressing ctrl, alt and t.


You may like

Working with TAR archives

(Image credit: Tom’s Hardware)

When using Linux systems you are likely to come across tar archives as well as ZIP archives. It’s useful to practice creating .tar archives and also how to extract from a tar archive. Also of note is that sometimes TAR archives are referred to as tarballs. Tar archives in their standard form have the .tar suffix but these archives are not compressed. Compression is added using different tar compression tools which is why you will see tar archives with extra suffixes such as .tar.xz or .tar.gz.

To create or extract from these compressed archives you need additional arguments added to the tar command. We’re going to use two of the most popular compression methods, gzip and bzip2 along with a tar archive that has no compression.

Using a TAR archive

1. Open a new terminal window. This will open to our home directory.

2. Create a .tar file. Using test_directory as a target we’ll make a standard uncompressed .tar archive. This kind of archive is useful to group small files, such as logs into a single archive.

Get Tom’s Hardware’s best news and in-depth reviews, straight to your inbox.

$tar cf test_archive.tar test_directory

(Image credit: Tom’s Hardware)

Extracting TAR archives is straightforward. Instead of adding the c argument to create an archive we replace it with the x argument. We again need to add arguments that respond to the type of compression tool the archive was created with. When we extract from our 3 archives we would be creating duplicates of the test_directory contents so we will delete this directory each time we extract the next archive.

1. Delete the test_directory folder.

rm -r test_directory

2. Extract the standard .tar archive. After extracting the archive use ls to check the archive has been extracted.

tar xf test_archive.tar
ls

Using Gzip Compressed TAR Files

A gzip compressed tar archive (tar.gz) is one of many popular compression tools for TAR archives and it is common to find a .

1. Create a gzip archive by adding the z argument to the tar command.

tar czf test_archive.tar.gz test_directory

To extract a gzip compressed tar archive we need to add the z argument to identify that the archive uses the gzip compression method.

2. Delete the test_directory folder.

rm -r test_directory

3. Extract the gzip compressed tar archive using the z argument. Then list the directory contents to show that test_directory has been created.

tar xzf test_archive.tar.gz
ls

Using Bzip2 Compressed TAR Files

Another alternative compression method for a tar archive is bzip2, which is invoked using the j argument. Archives typically end with either a tar.bz2 or tbz suffix.

1. Create a bzip2 archive by adding the j argument to the tar command.

tar cjf test_archive.tar.bzip2 test_directory

To extract a bzip2 compressed tar archive we need to add the z argument to identify that the archive uses the gzip compression method.

2. Delete the test_directory folder.

rm -r test_directory

3. Extract the bzip2 compressed tar archive.

tar xf test_archive.tar.bzip2
ls
rm -r test_directory

(Image credit: Tom’s Hardware)

If we wish to extract an archive to a specific location we can use the C argument with the tar command and then specify the location. The location can be a relative or absolute path. So we can extract the archive to a sub directory inside a current directory, or we can specify the full path to another location in the file system.

Extract test_archive.tar into the Music directory. Here we are in the Home directory, and most Linux distributions feature a Music directory which we can extract the archive to.

tar xfC test_archive.tar Music
cd Music
ls

To extract to another location in the file system it is best practice to use an absolute path.

Extract test_archive.tar to your desktop directory. Specify the full path, tab completion can be used to auto-complete directory names. Remember to change to match your own.

tar xfC test_archive.tar /home//Desktop/
cd /home//Desktop/
ls

Armed with these few examples you are now capable of extracting most common archives on the command line. Whilst GUI tool options exist for some archives, often when dealing with a compressed .tar archives, these terminal commands are much quicker and easier to perform.



Source link

June 11, 2025 0 comments
0 FacebookTwitterPinterestEmail
Process management via the Linux terminal
Gaming Gear

How To Kill a Process in the Linux terminal

by admin June 9, 2025



In this how-to we’ll look at various ways of using the terminal emulator to identify processes and how to kill them. A process can be an application or script running on your Linux machine. Sometimes a process can crash or become a memory hog and this is when we need to step in and “kill” the process. As ever, there are a multitude of tools that we can use to do this. We will use a variety of approaches and tools to identify and kill the processes.

While you become accustomed to these commands, it’s important to take care that you don’t kill a process which results in you losing work. Wherever possible use an application that isn’t currently in use on your machine as an example of a process to kill.

All the commands in this how-to will work on most Linux machines. We’ve used a Ubuntu 20.04 install but you could run this how-to on a Raspberry Pi. All of the how-to is performed via the Terminal. You can open a terminal window on most Linux machines by pressing ctrl, alt and t.


You may like

How to Kill a Known Application in Linux 

(Image credit: Tom’s Hardware)

To begin, let’s open a software application and then, in the terminal, use the killall command to kill the application. We have used Inkscape, the free and open source vector graphics package as an example, but it doesn’t really matter what you use, just so long as you aren’t depending on it for anything at the current time.

Using the killall command kills all processes linked to the named application. Later we will look at using the kill command to kill a specific process.

1. Launch Inkscape, or another test application, from the system gui.

2. In the terminal, use the killall command to kill all Inkscape processes. You should see that Inkscape closes immediately when this command is issued.

Get Tom’s Hardware’s best news and in-depth reviews, straight to your inbox.

killall inkscape

Identifying Different Processes in Linux

(Image credit: Tom’s Hardware)

Often, software applications have numerous processes running and it can be useful to try and work out which one is likely causing the problem. For example, it could be one browser window rather than all of Chromium or Firefox.Then you can close the problematic process while leaving the rest of the app running. We can use the top tool in the terminal to look at, interact and then kill the rogue processes.

1. Launch the top tool in the terminal. When it’s launched, you will see the terminal populate with information regarding all the processes and their status. The second line of the top screen shows the total number of tasks, which are currently running and which are sleeping, stopped or zombie status. Below this you will see a list of processes and this information will refresh at a default of once every three seconds.

top

2. Press i to constrain the current processes list to those currently active. This can be very useful if you are only interested in current running processes and makes the list easier to read.

3. Press z to add color to the top interface to make it easier to read. Because this is a text based interface, adding color can help distinguish between labels and data.

4. Launch Inkscape or another non essential application.

5. Find the listing for Inkscape and note the PID. The PID is the number assigned to identify the process and they are listed in the first column of the top output. In our example the PID for inkscape was 4582 but it will be different each time Inkscape is running.

6. Press k and then type the PID number to kill the process.

7. Press ENTER and you should see a message “Send pid 4582 signal [15/sigterm]” which is confirming you want to kill this process. Press “enter” once more to confirm and kill the process.

8. Press q to close top and return to the terminal emulator. Often, you will want to look at top for a quick glimpse at the processes and then return to the terminal.

Killing an Individual Process Outside of top

(Image credit: Tom’s Hardware)

Occasionally you might want to kill an individual process outside of top. We can use the PID number found via top in combination with the kill command to do this. Note that the killall command we used earlier won’t work with an individual PID.

1. Launch Inkscape or another application. The choice of application doesn’t really matter, just make sure you aren’t working in the application.

2. Launch top in the terminal. Press i and z to constrain the results and add color to the top theme.

top

3. Identify and note the PID for the application to kill. In our example the PID for Inkscape was 4582.

4. Exit top by pressing q.

5. Use the kill command and the PID number to kill the Inkscape process from the terminal emulator. Replace the example PID value below with your own identified PID.

kill 4582

Using top provides an excellent set of detective tools to identify misbehaving processes and can often allow you to clinically close an unresponsive process whilst possibly saving other data in an application.

Killing Processes Using the ps Process Report

There is an alternative to top. We can use the ps command, designed to produce a report of all the running processes.

1. Launch Inkscape or another application. The choice of application doesn’t really matter, just make sure you aren’t working in the application.

2. Run the ps command with two arguments. The -e argument shows all the processes and the -f argument sets the format to the system standard syntax.

ps -ef

(Image credit: Tom’s Hardware)

3. Use grep to filter the report. searching just for “inkscape”. The typical ps -ef output is extremely dense, packed with dozens of running processes. Using a filter we can search for the application name. The PID is the second column, just after the username. You may see multiple PIDs for the application.The one that we are interested in just shows the application name.

ps -ef | grep inkscape

(Image credit: Tom’s Hardware)

4. Use the kill command along with the PID to kill the process. In our case Inkscape had a PID of 19166.

kill 19166

Process management is a key Linux skill to learn and it’s worth taking the time to practice these approaches before you need to deploy them in a real situation.



Source link

June 9, 2025 0 comments
0 FacebookTwitterPinterestEmail
Searching for files with the Linux terminal
Product Reviews

How To Find Files in the Linux terminal

by admin June 9, 2025



In this how-to, we’ll look at various ways of using the find command to help us find files and directories across the Linux filesystem. Sometimes we misplace a file or directory and we can spend precious time searching via the terminal. On the Linux desktop, the file manager will have a builtin search tool, as does the terminal. The find command is immensely useful, and exceptionally easy to use.

Whilst you become accustomed to these commands, it’s good to work with test files and directories and you should take extra care to ensure you are carefully following the instructions.

All the commands in this how-to will work on most Linux machines. We’ve used an Ubuntu LTS install but you could run this how-to on a Raspberry Pi. All of the how-to is performed via the Terminal. You can open a terminal window on most Linux machines by pressing ctrl, alt and t.


You may like

Finding a File in Linux

(Image credit: Tom’s Hardware)

To begin, let’s create some example files in a directory and then use the find command to find them.

1. Create a test folder containing test files. After creating the test directory and files check the files have been created using ls.

mkdir test
cd test
touch test1.txt test2.h test3.c TEST.f
ls

2. In the test directory, find the file called test1.txt. Using find with “.” indicates that the search should be confined to the current working directory. After running the find command you should see the test1.txt file listed as a result.

find . -name test1.txt

Searching Using a Partial Filename in Linux

(Image credit: Tom’s Hardware)

On occasion, we may need to search using partial file or directory names. Let’s look at how to do this and how searching for partial terms affects the results.

Get Tom’s Hardware’s best news and in-depth reviews, straight to your inbox.

1. In the test directory run the following command searching for files that contain the term “tes” within their name.

find . -name “*tes*”

In the list of results, you should see that all the files have been found and listed apart fromTEST.f , this is due to -name returning case sensitive results. We’ll look at an alternative that returns non case sensitive results in a later section.

2. Repeat the command searching for a specific file extension. We can use the same method to search for a particular file type. Changing the command to search for“*.txt*” will return only the .txt filetype.

find . -name “*.txt*”

3. Use -iname to return non-case sensitive results. Here we use the partial search term“*tes*” again but using -iname forces the command to show all results regardless of upper or lower case. Therefore the results include our file TEST.f .

find . -iname “*tes*”

Distinguishing Between Directories and Files in Linux

(Image credit: Tom’s Hardware)

In its standard form, the find command will also return any matching results regardless be they files or directories. We can also add tags to the find command that force the command to only return files or only return directory results.

1. Add a directory inside our test directory called test2. Use ls to confirm that the directory has been created.

cd test
mkdir test2
ls

2. Run a find command that will return both file and directory results. You should see that the result contains all the test files and also the test2 directory.

find . -iname “*test*”

3. Add the -type f tag to return only file results. Note that in the results the directory test2 is omitted.

find . -iname “*test*” -type f

4. Add the -type d tag to return only directory results. Note that the only result now should be the test2 directory.

find . -iname “*test*” -type d

Searching the Entire Filesystem in Linux

(Image credit: Tom’s Hardware)

You may need to search the entire filesystem to try and find a misplaced or forgotten file.

1. Search for the test1.txt file from the root (/) of the filesystem. This step isn’t tremendously successful and has been added to illustrate a common issue.

cd
find / -iname test1.txt

You will find that you don’t have permission to search in a lot of areas, this results in a long reported list of areas we can’t search and, although our test1.txt file has been located we need to search through the report list to find it. Notice in this example we use / to enable the command to search all sub directories.

(Image credit: Tom’s Hardware)

2. Repeat the previous search but use sudo to add root privileges. This then gives the command permission to access most places within the filesystem and as such the returned report will be much clearer and easier to read.

sudo find / -iname test1.txt

With these examples you should now have a basic tool set to find any file anywhere on your system, even if you only know a part of its name.



Source link

June 9, 2025 0 comments
0 FacebookTwitterPinterestEmail
Linux Terminal
Product Reviews

The Essential Linux commands that every user needs to know

by admin May 30, 2025



Linux runs on hardware as diverse as the Raspberry Pi and powerful supercomputers, making it a flexible choice of operating system. Linux can be used via a graphical user interface similar to Windows or macOS. Or it can be used via a powerful terminal / command line.

The command line interface provides you with a lot more control over the computer than you can get using the GUI. Many important tasks are easier, quicker or only possible via commands. That’s why, below we’ve listed the most important commands for navigating the file system, installing software, editing files and monitoring performance.

Opening a Terminal

(Image credit: Future)

To open a terminal from the desktop, you can either click on the Terminal icon found in the applications menu or hit CTRL+ ALT + T. Once open, you will see a black screen appear with a flashing prompt.


You may like

les@ThinkpadX390:~ $

This prompt is telling us that we are logged in as a user called “les” and that our machine is called ThinkpadX390 (this is the hostname). The $ refers to our permissions, in this case that we are logged on as a user with no special privileges, and that we have permission to edit any file or folder in our home directory, which in this case is /home/les/.

In our home directory we can store our work, projects, pictures etc. But we cannot harm the underlying filesystem as we do not have permission to do so. To make system wide changes we either need to be a user called “root” which has similar powers to the administrator on Windows, or we need to use sudo (see below) to temporarily give us extra permissions.

So let’s start our adventure by testing out a few Linux commands and learn how to use the terminal

sudo – Super User Do

Many forms of Linux do not, by default or design, give you the admin privileges you need to perform some core tasks like installing software. This is done to make sure that the operating system is protected. However, by prefacing any command with the word “sudo,” you can have admin rights for that execution. To use “sudo,” you will have to be in the “sudoers” permission group, but the good news is that many Linux distros already put the main user in this group.

Get Tom’s Hardware’s best news and in-depth reviews, straight to your inbox.

We can check if our user is in the sudoers group by running this command. Just swap for your username

groups

(Image credit: Future)

This shows that my user, les, is in the sudoers group.

To use sudo to upgrade your operating system, you’d type:

sudo apt upgrade

(Image credit: Future)

Navigating the Linux file system

Moving around the filesystem is something we take for granted in a desktop environment. But with the terminal we can do everything, and often with greater speed and precision. We just need to know the correct commands. If you don’t have permission to perform any of these actions on a particular file or directory, prefacing the command with sudo will probably let you, but think before doing so. There is no undo button.

We’ve got a full guide on the Linux file system, showing you what each directory is for.

pwd – Print working directory

This command will show the full path to the directory we are in, for example /home/les. It is a useful command to clearly show where we are in the filesystem. Typically our location forms part of the prompt, but with pwd we get a clearer indication of our location.

pwd

(Image credit: Future)

ls – List directory content

This command is used to list the contents of a directory. You may already be familiar with dir used in Windows and MS DOS.

You can use the command to list files in your current working directory.

ls

(Image credit: Future)

We can also list the files in another directory, such as /var/log:

ls /var/log

(Image credit: Future)

See hidden files and directories, in a long list with extra details.

ls -lha

(Image credit: Future)

List all files of a certain type, for example .py Python files.

ls *py

(Image credit: Future)

cd – Change directory

Using cd, change directory we can move around the filesystem. For example to move from our home directory to Downloads

cd Downloads

(Image credit: Future)

Move to a directory in another part of the filesystem, for example /var/log.

cd /var/log

(Image credit: Future)

Go back to the previous directory that we were in.

cd –

(Image credit: Future)

Go back to our home directory.

cd ~

(Image credit: Future)

Working with files

Sometimes we need to take a peek inside a file, look for a specific command, error or bug and with these commands we can do just that all from the terminal.

cat – Print files to the terminal

With cat we can print the contents of a file to the terminal, for example a Python file.

cat test.py

(Image credit: Future)

Print contents of the file to the terminal with line numbers. Useful when debugging a file, and you need to tell a colleague exactly where to find the issue.

cat -n test.py

(Image credit: Future)

less – Print files to the terminal

The less command will print the contents of a file in sections and we can scroll through the file using the arrow keys, Page Up / Down and Home / End.

less /var/log/syslog

(Image credit: Future)

grep – Looking inside a file

To search inside a file for a specific word / section of text. Typically used with log files when looking for issues. In this example we use lscpu to print the details of the CPU which is passed via a pipe | to grep which we instruct to look for “MHz”.

lscpu | grep “MHz”

(Image credit: Future)

Edit a file

For when you quickly need to edit a config file, Python code or just write a to do list. Yes, there are many different text editors for the terminal, nano, Vi, Vim etc. But for this how to, we will stick with nano.

nano

Nano is the easiest command-line editor for beginners.

Create a new file, for example newfile.txt.

If the file doesn’t exist, the command will create it. If it exists, it will open the file.

nano newfile.txt

(Image credit: Future)

Edit an existing file, for example test.py.

nano test.py

(Image credit: Future)

Inside nano we navigate using the arrow keys and it works just like a regular text editor.

To save your work press CTRL + O, then confirm the filename. Finally, press Enter

To exit nano, press CTRL + X.

System Resources & Management

Managing our operating system and checking system resources is standard practice for system administrators. Here we show a few commands that will show you key details at a glance.

htop – Display system processes

Shows the current CPU load, RAM usage and running system processes. Useful for closing non responsive applications and seeing which processes are bottlenecking your system.

htop

(Image credit: Future)

free – Show amount of free and used RAM

Free will tell us how much RAM is in use, and what is free for applications. Using the -m option we can set the values in Megabytes. By default, free will show the values in KB.

free -m

(Image credit: Future)

dmesg – Monitor kernel events

The kernel is the core of the operating system and with dmesg we can see what events are happening behind the scenes. Useful for debugging issues with devices. You will need to run the command using sudo, otherwise you will not have access to all of the data.

sudo dmesg

(Image credit: Future)

File Management

Moving, deleting, copying and creating new files and directories are some of the most basic actions that we need to do. All of this, and much more is possible via the terminal.

mv – Move / rename a file

This command offers two functions. We can move a file from one location to another. For example here we move test.py to the Documents directory.

mv test.py Documents/

(Image credit: Future)

The command can also be used to rename a file or directory. Here we rename test.py to test2.py.

mv test.py test2.py

(Image credit: Future)

rm – Delete a file

With this command we can delete files and directories. In this example we delete the file test.py.

rm test.py

(Image credit: Future)

cp – Copy a file

To copy a file, for example test.py to our Documents directory.

cp test.py Documents/

(Image credit: Future)

To copy a directory, for example /home/pi/test2 to /home/pi/Documents/ we need to use the -r option to copy everything across.

cp -r test2/ Documents/

(Image credit: Future)

mkdir – Create a directory

Create a new directory to store work. For example let’s create a directory called Work in our home directory.

mkdir Work

(Image credit: Future)

Software Installation

Just like any computer we need to make sure that our software is up to date and on our Linux machine the tool to do just that is called apt.

apt – Install and manage software on Debian and Ubuntu based systems

Apt, the Advanced Packaging Tool. The app store of Debian and Ubuntu flavors of Linux. To use apt we will need to use sudo as it will make changes to the operating system.

First we update the list of installable software.

sudo apt update

(Image credit: Future)

Then we can install a specific application, for example to install vlc.

sudo apt install vlc

(Image credit: Future)

Or we can upgrade all of the software on our system. Note that for this command we pass the -y option to automatically agree to install every package. But this is optional and if you prefer, you can omit the -y and be prompted for confirmation.

sudo apt upgrade -y

(Image credit: Future)

Network Connectivity & Internet

Checking that your Linux machine is connected to the Internet is a basic yet crucial task. It enables us to debug our servers, watch YouTube videos, and get work done.

ping – Check that we are connected

The ping command is used to test that our Linux machine is connected to the Internet / home network.

We can send a ping to a website.

ping google.com

(Image credit: Future)

Or to an IP address such as Google’s DNS server.

ping 8.8.8.8

(Image credit: Future)

Or for internal connectivity checks we can send a ping to devices on our home network. This example assumes that our IP range is 192.168.1.114 but your range may be different.

ping 192.168.1.114

hostname – Get the IP address of your Linux device

The easiest way to find the IP address of our Linux machine is using hostname with the -I (uppercase i) which will show all IP addresses (Wi-Fi and Ethernet)

hostname -I

(Image credit: Future)

Curl – Transfer data over a network

With this command we can transfer a file to and from our Linux machine. For example if we wanted to download an image from a website we would use curl along with the -o option to create a file named image.jpg.

Note, curl may not be installed on your system, so you may need to install using sudo apt install curl

curl http://link-to-theimage.com/image.jpg -o image.jpg

(Image credit: Future)

The curl command is particularly useful for downloading installation scripts to automatically install add on boards. But it should be used with caution and any code reviewed before it is used.

Time Savers

The Linux terminal has many secrets and tricks, all designed to save you time and become a keyboard ninja.

history

The history command will display the history of the commands entered in the terminal. When used it will output all of the commands at once as a long list.

history

(Image credit: Future)

At the start of each line in the list is a number and we can use this number to run that command once again. But we must precede the number with an exclamation mark.

!117

history with grep

By using a pipe “|” with the history command we can send the output of history to grep where we can then search for specific commands. Here we look for all the occurences of “apt” in history.

history | grep “apt”

(Image credit: Future)

CTRL + R search

Using this we can interactively search through our command history for a specific command. To start we press CTRL + R together and then start typing part of the command. For example we have just used the history | grep “apt” command so we can now press CTRL + R and start typing history and the search will find that command.

TAB completion

Think of this as “auto complete” for the terminal. The TAB key is located just above the Caps Lock key and we can use TAB completion to help complete long commands, directory listings. If we type in the first few letters of a command, for example his and press TAB it will complete the command to show history.

But if we wanted to complete a long directory path, for example /usr/lib/python3/dist-packages then we could start typing /usr/lib/ and then press TAB to show us all the directories available along that path. We could then start typing python3 and by pressing TAB a few more times, the command will narrow down the options that we can use.

Arrow keys

Another way to search through your history is to use the up and down arrow keys. With these keys we can go backwards and forwards through our command history and when the correct command is displayed, press Enter to run.

alias

Using this command we can create shortcuts / short commands from much longer ones. For example here we create an alias called updater and use that to call two commands. The first will update our list of installable software, and if that works successfully, denoted by using “&&” to chain the commands together, then it will run the upgrade on our Linux machine.

alias updater=”sudo apt update && sudo apt upgrade -y”

(Image credit: Future)

Now we can run our update command just by typing updater in the terminal. Note that once the Linux machine is switched off, this alias is deleted.

(Image credit: Future)



Source link

May 30, 2025 0 comments
0 FacebookTwitterPinterestEmail

Categories

  • Crypto Trends (963)
  • Esports (730)
  • Game Reviews (680)
  • Game Updates (849)
  • GameFi Guides (956)
  • Gaming Gear (913)
  • NFT Gaming (938)
  • Product Reviews (905)
  • Uncategorized (1)

Recent Posts

  • Private DeFi is also about market efficiency
  • Overwatch 2 is getting a Persona 5 crossover event alongside brand new hero
  • Apple is reportedly considering using Gemini to power the new Siri
  • BNB hits new ATH as cryptocurrencies rally post-Powell speech
  • Adele, Future and Michael Jackson Instagram Accounts Hijacked for Crypto Scam

Recent Posts

  • Private DeFi is also about market efficiency

    August 23, 2025
  • Overwatch 2 is getting a Persona 5 crossover event alongside brand new hero

    August 23, 2025
  • Apple is reportedly considering using Gemini to power the new Siri

    August 23, 2025
  • BNB hits new ATH as cryptocurrencies rally post-Powell speech

    August 23, 2025
  • Adele, Future and Michael Jackson Instagram Accounts Hijacked for Crypto Scam

    August 23, 2025

Newsletter

Subscribe my Newsletter for new blog posts, tips & new photos. Let's stay updated!

About me

Welcome to Laughinghyena.io, your ultimate destination for the latest in blockchain gaming and gaming products. We’re passionate about the future of gaming, where decentralized technology empowers players to own, trade, and thrive in virtual worlds.

Recent Posts

  • Private DeFi is also about market efficiency

    August 23, 2025
  • Overwatch 2 is getting a Persona 5 crossover event alongside brand new hero

    August 23, 2025

Newsletter

Subscribe my Newsletter for new blog posts, tips & new photos. Let's stay updated!

@2025 laughinghyena- All Right Reserved. Designed and Developed by Pro


Back To Top
Laughing Hyena
  • Home
  • Hyena Games
  • Esports
  • NFT Gaming
  • Crypto Trends
  • Game Reviews
  • Game Updates
  • GameFi Guides
  • Shop

Shopping Cart

Close

No products in the cart.

Close