source vs ./script: which shell runs it
Sourcing a bash script runs it in your current shell. Executing forks a child. Why cd and export do not stick, and why source can close your session.
Filtering by topic #linux · clear
Sourcing a bash script runs it in your current shell. Executing forks a child. Why cd and export do not stick, and why source can close your session.
A 500GB VPS disk is about 465.66 GiB before filesystem overhead. Plans use decimal units and df -h uses binary. Check the arithmetic on your own server.
systemd targets replaced runlevels, and systemd 258 removed even the numbered aliases. See what a target is, and how to change what your VPS boots into.
A pipe shares data between readers; tee copies it. Copy a stream to a file, append with tee -a, fan out with process substitution, and read PIPESTATUS.
Change Linux permissions with chmod: the octal digits, the u/g/o symbolic form, why a recursive numeric mode breaks a tree, and what capital X fixes.
Your host says NVMe. Use lsblk, sysfs, nvme-cli and a bounded fio run to inspect the guest interface and latency, without proving the host's physical storage.
nginx returns 403 and the permissions look fine. Read the SELinux denial, fix the label with semanage and restorecon, and leave enforcing on.
Linux kernel 7.1 shipped on 14 June 2026. Here is what reaches a VPS tenant, how to check the kernel you run now, and when 7.1 arrives on your distro.
Why servers use GPT, what the protective MBR in sector zero is for, how many partitions you get, and how to fix the backup header after a volume resize.
The watch command repeats commands every two seconds. Pick a sane interval, highlight the diff, exit on change, and quote pipes so watch runs them.
ProtectSystem, PrivateTmp, DynamicUser and NoNewPrivileges explained: what each directive blocks, what it breaks, and how to debug a unit that stops starting.
A Fedora release gets about 13 months of updates, so a Fedora server needs a version upgrade every year. What that costs, and when Fedora is worth it.
chown sets which user and group own a file on Linux. Create the account first, use chown user:group and chown -R, and fix root owned files after sudo.
Set Colemak on the Linux console, in X11 and on Wayland, learn why an SSH server needs no layout, and what happens to Vim's hjkl and Ctrl keys.
import_playbook, import_tasks and include_tasks do different jobs. See which one your site.yml needs, and compare their task listings before a run.
Learn what Ansible facts cost, when gather_facts: false is the right call, and how gather_subset and JSON fact caching cut the wait on every run.
Linux is free to download and run on any number of machines. The money goes to four places: subscriptions, support, paid cloud images and the server itself.
Why $(...) runs in a subshell, so cd and variables vanish, why backticks nest badly, and the process substitution tricks that keep state in your shell.
What SysV init could not do, what Upstart and launchd tried first, why major distributions moved to systemd in four years, and which objections were right.
You ran rm -rf on the wrong path. Stop writing to that disk now, then work through the recovery options that actually exist on ext4, in order.
How Red Hat Linux split into Fedora and RHEL, why CentOS existed, what the 2020 CentOS Stream change broke, and where Rocky Linux and AlmaLinux came from.
Your VPS disk reads full and a directory walk cannot find the space. Find the deleted file a process still holds open, and the other causes.
Move data off an LVM physical volume with pvmove, then vgreduce and pvremove before you detach the disk, in the order that keeps a mounted filesystem alive.
ZFS gives a server checksummed data, free snapshots, send/receive replication and cheap compression. The ARC also takes your RAM. How to judge that on a VPS.
Six server jobs Claude does well: reading a failed unit's logs, drafting systemd units, reviewing nginx and Compose files, plus what you must never paste.
A history of the Linux kernel from 0.01 to 7.x: the GPL switch, the microkernel argument, the birth of git, the LTS model, and what each means for servers.
Bash globbing explained: how the shell expands wildcards into filenames before a command runs, plus nullglob, dotglob, globstar and extglob negation.
Ubuntu, Debian, Rocky, AlmaLinux, CentOS Stream or Fedora: choose by support lifetime, package age, RHEL compatibility and whose docs you follow.
Saw a Linux device in your Google account or router app? It may be your own phone or tablet. Here is how to check, and what a device means in /dev.
Debian is a Linux system built by volunteers, with no company behind it. See who runs it, how its release and support dates work, and when to pick another OS.
Gate the reboot on evidence the host reports: the Ubuntu marker file, the Red Hat exit code, then reboot in slices so the whole fleet stays up.
What runs natively on Linux today: the beta desktop app from apt, the Claude Code CLI, editor plugins, and which paid plan covers each one.
Your unit says active but the daemon is gone. Pick the right systemd Type= for simple, exec, forking, oneshot and notify, and find the real main PID.
Tux came from a 1996 kernel mailing list thread. The primary sources: the penguin bite, the contented penguin Linus wanted, the Tux name and Tuz the devil.
Almost every Linux distribution descends from Slackware, Debian or Red Hat. Trace the family tree, the package managers, and what your VPS images inherited.
Run one Ansible task on many servers without writing a playbook. Learn host patterns, become, forks and dry runs, plus the modules a VPS admin uses every week.
How Unix became Linux: Bell Labs in 1969, AT&T licensing, Berkeley BSD, the 1992 lawsuit, and why the server room went to Linux instead of BSD.
No one owns all of Linux. Copyright stays with each contribution's owner, Torvalds owns the trademark, and the Linux Foundation only licenses it.
Bash names the token it could not parse. Read it to find the cause: a pasted <file>, a missing then or do, CRLF line endings, or an HTML page piped into bash.
Learn how ln -s links work on Linux: absolute versus relative targets, readlink and realpath, and the ln -sfn and mv -T release switch for VPS deploys.
A port is how a server sorts incoming traffic to the right service. Learn to read what is listening with ss, and tell a local port from a public one.
A systemd service keeps your program running: start on boot, restart on crash, log to the journal. How to write one, add a timer, and harden it.
SSH config, tmux, Ansible, Uptime Kuma, Zabbix and Webmin, ranked by how many servers you have: what each replaces, setup cost in minutes, the one gotcha.
A practical comparison of Linux and Windows Server: cost, footprint, remote management, web stacks, Active Directory, and when each is right.
Colemak, Dvorak or QWERTY: what each layout optimises, where the typing speed evidence is weak, and what a switch costs on machines you do not own.
Five reasons a cron job seems dead: a minimal PATH, an unescaped percent sign, the wrong crontab, output lost to mail, and a script that assumes your shell.
The umask clears bits from the mode of each new file. Print it, create a file and a directory, read the modes back, and see why root and your user differ.
The dnf command for every apt command you already know, on Rocky Linux, AlmaLinux and Fedora, plus the repository and rollback parts that do not map.
How SSH keys work and how to manage them: one ed25519 key per device, the permissions sshd demands, config Host blocks, and revoking a lost key.
Yes. The .pub file is meant to be shared. How to tell it from the private key in ten seconds, what a stranger can do with each half, and how to make one.
Attach a second disk to a Linux VPS: find the device with lsblk, make a filesystem, mount it, and persist it in /etc/fstab by UUID with nofail.
Running a service as root turns one bug into full server access. Give each service its own unprivileged account, or let systemd do it with DynamicUser.
A fair comparison of Linux and FreeBSD as server systems: base design, licensing, packages, ZFS and jails, containers, and where each one wins.