I don't want to live a life with only voices.
  • sftp Command: Connecting, Transferring Files with put and get, and Using Batch Mode

    The sftp command is OpenSSH's file transfer program for exchanging files with a server connected over SSH; after connecting, you move between remote folders at the sftp> prompt, uploading with put and fetching with get. On an AlmaLinux 9 test server, connecting with key authentication, exchanging files and folders, and also running a -b batch file showed that a file with the same name was overwritten without asking and that a batch stopped on the spot when a command in the middle failed, ending with exit code 1…

  • parted Command: Creating GPT Partitions and Using mkpart and resizepart

    The parted command is a Linux command that creates a partition table on a disk and creates, deletes or resizes partitions. On an AlmaLinux 9 test server, a GPT partition table and 2 partitions were created on a 4 GiB practice disk and taken through deletion and extension, and on a 3 TiB disk, a partition that could not be created with MBR was created by changing to GPT. The commands below were run under the root account of an AlmaLinux 9 test server, and the output is exactly as received from GNU Parted…

  • findmnt Command: Checking the Mount Tree and Verifying fstab with the verify Option

    findmnt 명령어는 지금 마운트된 파일 시스템을 트리로 출력하고, 장치나 경로, 형식으로 마운트를 찾거나 fstab 파일을 검사하는 리눅스 명령어입니다. Debian 12 서버에서 마운트 트리와 디스크 용량을 확인한 뒤 일부러 틀린 줄을 넣은 시험용 fstab 파일을 –verify로 검사했고, 재부팅 전에 없는 마운트 지점과 장치를 오류 3건으로 찾아냈습니다. 아래 출력은 Debian 12 서버의 일반 사용자 계정에서…

  • diff Command: File Comparison, the diff -u Patch Format, and Options

    The diff command is a Linux command that compares two files line by line and prints only the lines that differ. Comparing an old file and a new file that imitate a web server configuration with diff showed the three changed places as the three lines 2,3c2,3, 5d4, and 6a6, and the patch file saved with the -u option listed the same changes with minus and plus signs. The file names and contents in the output below and the working folder /root/work are example…

  • id Command: Checking UID and Groups, whoami, groups, and Supplementary Groups

    To check the UID and groups of the current account on a Linux server, use the id command; use whoami when you need only the account name and groups when you need only the group names. Running the three commands in turn on AlmaLinux 9 and Debian 12 servers and comparing the output showed that id -un and whoami printed the same account name, and groups printed the group list of id with only the names left. The output below was produced on an AlmaLinux 9.8 server under the root account and…

  • man Command: Usage and Options, Section Numbers, and man -k Search

    To check how a command or a configuration file is used on a Linux server, open its manual page with the man command, and when you don't know the name, search the short descriptions with man -k. Looking up the passwd page on AlmaLinux 9 and Debian 12 servers showed that Debian 12 had both a section 1 command page and a section 5 file format page, while AlmaLinux 9 had no section 5 page. The output below was produced on an AlmaLinux 9.8 server…

  • pgrep Command: Finding a PID by Name, the -f Option, and How pidof and pkill Differ

    To find the number (PID) of a running process by its name, account, or command line, use the pgrep command. On an AlmaLinux 9 server, we copied the sleep program under different names, started three of them, and compared the processes each option found. Searching by name returned only those three processes, while searching the whole command line with -f also returned the timeout that launched them. The output below comes from the root account on an AlmaLinux 9.8 server and…

  • tracepath Command: Check Hops and Path MTU Instead of traceroute

    On a Linux server, the tracepath command shows the path (hops) that packets take to a destination and the path MTU, without root privileges. On an AlmaLinux 9 server without traceroute installed, we limited the hop count to 10 and traced the path to example.com: response times and a path MTU of 1500 appeared up to the fourth hop, and the six hops after that did not respond. The output below was run on an AlmaLinux 9.8 server (root account)…

  • lsblk Command: Checking Disk and Partition Layout and UUIDs

    The lsblk command prints the disks and partitions connected to a server and their mount points as a tree, and shows disk sizes, file system types, and even UUIDs at a glance. When we ran lsblk on an AlmaLinux 9 server, the loop devices created by snap packages were listed before the disk, so we filtered them out with -e 7. Then we used -f to check the xfs file system and UUID of the root partition. The disk sizes and…

  • DigitalOcean Droplet: Creation Options, Detail Screen and Checking Charges After Deletion

    When you create a DigitalOcean Droplet (DigitalOcean's virtual server), changing the region or CPU option makes the monthly price range from $32.00 to $6.00, and charges accrue by the second from the moment you create it until the moment you delete it. After deletion, you check the amount used on the Billing screen, which is updated once a day. 1️⃣ DigitalOcean Droplet Creation Options 📍 Where: DigitalOcean control panel (browser) · [Create Droplet] screen If you don't have an account or are creating a Droplet for the first time, first go through DigitalOcean…

End of content

End of content