The hottest Unix Substack posts right now

And their main takeaways
Category
Top Technology Topics
Blog System/5 827 implied HN points 13 Feb 25
  1. The 'ioctl' system call is used in Unix-like systems to communicate with the kernel in ways that go beyond normal file operations. It allows for special operations not covered by standard read/write calls.
  2. Using 'ioctl' in Rust can be tricky. It often requires unsafe code blocks since it involves direct interactions with the kernel and can affect the running process in unpredictable ways.
  3. There are multiple ways to call 'ioctl' in Rust, including using libraries like 'nix' and 'libc', or even creating custom C wrappers. Each method has its trade-offs in terms of complexity and code structure.
CodeFaster 108 implied HN points 25 Jul 23
  1. The Unix one-liner uses commands like find, grep, xargs, and math-sum to get total minutes of audio files.
  2. The find command lists all files and directories in the current location.
  3. The xargs -L 1 mp3-minutes command calculates the duration in minutes for each mp3 file and then sums up the total duration using math-sum.
CodeFaster 72 implied HN points 23 Jul 23
  1. The Unix one-liner uses commands like cat, tac, cut, and less to process a CSV file.
  2. Using 'cat' reads the file, 'tac' prints it in reverse, 'cut' selects specific columns, and 'less' displays data page by page.
  3. This one-liner is handy for quickly examining and navigating through large CSV files in the terminal.
Get a weekly roundup of the best Substack posts, by hacker news affinity:
Amaca 4 HN points 14 Apr 23
  1. Computer enthusiasts often enjoy niche, specialized tools like Emacs and tiling window managers.
  2. The appeal of coding fast and optimizing code has roots in past technological limitations like low RAM.
  3. The future of programming may move towards more natural language interactions with machines, making traditional tools like Emacs less essential.
Curious Devs Corner 0 implied HN points 10 Jul 24
  1. Heredoc is a way to write multiple lines of code in a clean format for Unix scripts. It makes your scripts easier to read and manage.
  2. You can use heredoc with commands like ssh, sftp, and cat to run multiple instructions at once. This saves time and reduces the complexity of your scripts.
  3. With heredoc, you can also add comments and organize your code better. Plus, it allows for things like parameter substitution to make your scripts even more powerful.
Curious Devs Corner 0 implied HN points 09 Jul 24
  1. The 'disown' command helps keep a running process alive even after you close your terminal session. It allows you to remove jobs from the job table so they won’t get stopped when the shell closes.
  2. The 'at' command is used to schedule a job to run just once at a specific time. It's great for when you need to execute something later without using a cron job.
  3. The 'batch' command runs jobs when the system's load is low. It’s useful for scheduling tasks without overloading the system, ensuring smoother operation.
Curious Devs Corner 0 implied HN points 08 Jul 24
  1. Expect is a tool that helps automate tasks in the terminal by handling inputs automatically. This means you don't have to type everything manually when running programs or scripts.
  2. You can use Expect for common tasks like logging into remote servers or transferring files easily. It saves time by doing these repetitive tasks for you.
  3. Setting up Expect is straightforward; you just need to install it on your Unix-based system and write a simple script to get started automating your commands.
Curious Devs Corner 0 implied HN points 28 Aug 24
  1. The `xargs` command helps to build and run new commands by passing input from one command to another. It's particularly useful when you want to handle lots of files at once.
  2. You can use `xargs` with commands like `find` to perform specific actions on multiple files, making tasks like deleting or renaming files easier.
  3. By using options like `-p` and `-n`, you can interactively confirm actions and control how many arguments are processed at a time, allowing for safer execution of commands.