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?

1+ day, 8+ 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

1+ day, 12+ 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]

1+ day, 13+ 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?

1+ day, 15+ 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)

1+ day, 21+ 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

2+ day, 18+ 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?

3+ day, 16+ 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 > linux > vim-search-and-replace

5 tricks for Vim Search and Replace

4+ day, 16+ 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

6+ day, 20+ 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…...

LinuxForDevices
linuxfordevices.com > tutorials > linux > dark-mode-in-vlc-player

Enable Dark Mode in VLC on Linux

1+ week, 6+ day ago   (412+ words) VLC can keep a light title bar and controls even when your Linux desktop uses a dark theme. The dependable way to change the whole player interface is to use VLC’s skins interface with a dark VLC skin. VideoLAN documents…...