Please confirm you are human

This browser or connection looks automated. Press and continuously hold the control for 3 seconds to enable Google-hosted web results and, when separately allowed, AI-assisted answers.

A successful check enables 100 search requests. Interactive access does not authorize scraping, systematic collection, or reuse of search output.

Hold with a pointer, or hold Space or Enter.

News

LinuxForDevices
linuxfordevices.com > tutorials > linux > find-out-all-the-open-ports-in-linux

How to Find Out all the Open Ports in Linux?

2+ day, 10+ hour ago   (1454+ words) Two states get mixed up constantly. Listening means a local process is waiting for connections on an address and port. Established means a connection is active between two endpoints. When you hunt for open ports you want the listening set,…...

LinuxForDevices
linuxfordevices.com > tutorials > linux > rename-a-directory

Rename a Directory in Linux: 3 Methods

2+ day, 14+ hour ago   (975+ words) You run ls, see old_project, and you want it to be new_project without touching the files inside. Linux has no standalone rename step for directories, so you reuse the move operation with a new name, which means a single mv call does…...

LinuxForDevices
linuxfordevices.com > tutorials > linux > mount-usb-drives-in-linux

How to Mount USB Drives in Linux? [The Easy Way]

2+ day, 15+ hour ago   (769+ words) Plug in a USB stick on Linux and nothing opens, which is normal on servers and minimal desktops. You need to attach its partition to a folder before you can read or write files. You mount a USB drive by…...

LinuxForDevices
linuxfordevices.com > tutorials > linux > remove-a-directory-in-linux

How to remove a directory in Linux?

2+ day, 17+ hour ago   (848+ words) You run rmdir on a folder you just created and it works, then you run the same command on a folder with a single file inside and get Directory not empty. That split is the whole design of directory removal…...

LinuxForDevices
linuxfordevices.com > tutorials > edit-files-in-linux

How to Edit a File in Linux from the Terminal (nano, Vim, sed)

2+ day, 23+ hour ago   (1951+ words) Any text file on a Linux system is an ordinary file you can open and change, whether it holds a hosts entry, an Nginx server block, or a shell script. Typing the new text is easy, and the key that…...

LinuxForDevices
linuxfordevices.com > tutorials > linux > create-a-file-in-linux

How to Create a File in Linux: 5 Practical Methods

3+ day, 20+ hour ago   (592+ words) I ran touch empty.txt and stat reported empty.txt as 0 bytes, then checked writes, appends, standard input, and editor-based creation. Choose the method by the result you need: a blank file, controlled text, typed input, or an interactive editing…...

LinuxForDevices
linuxfordevices.com > tutorials > ubuntu > check-ubuntu-version

How To Check Your Ubuntu Version From The Command-Line?

4+ day, 18+ hour ago   (568+ words) When a support guide or an install command depends on the exact release, I print the answer from the terminal instead of guessing. This page collects the fastest version commands I rely on across the Linux command line, with output…...

LinuxForDevices
linuxfordevices.com > tutorials > find-your-ip-address-in-linux

How to Find Your IP Address in Linux

5+ day, 1+ hour ago   (582+ words) On the test machine the private address is 10.0.0.76 and the public address is 152.67.10.205, and neither command can show you both. Pick the tool that matches the question you are actually asking: “what is this interface configured with” needs ip, while…...

LinuxForDevices
linuxfordevices.com > tutorials > linux > vim-search-and-replace

5 tricks for Vim Search and Replace

5+ day, 19+ hour ago   (1006+ words) Vim search and replace runs on a handful of commands. I re-ran every command in this guide on Vim 9.1 against a scratch file, so what you read here is what Vim actually does. You start by finding text, then replace…...

LinuxForDevices
linuxfordevices.com > tutorials > shell-script > switch-case-in-shell-scripts

Shell Scripting 101: Switch Case in Shell Scripts

1+ week, 23+ hour ago   (965+ words) Long if-elif-else chains get hard to read once a script needs more than two or three outcomes. The bash case statement handles that job with one value, a list of globs, and the first matching block runs. I rebuilt the…...