Skip to main content

Questions tagged [unix-philosophy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
46 views

Can bash natively re-format a relative path to an absolute path, or not - being dependent on tool "realpath"?

UPDATE Once again, I can't post an answer to my question! Clicking the button just triggers an error message: "Unable to load popup - please try again". So, I have no other choice than to ...
futurewave's user avatar
-2 votes
1 answer
75 views

why its important for a software to do one thing and do it well [closed]

actuality what make a software bad if he do most of the things in a system and that software do all its jobs well why UNIX philosophy prefer to set as stander for its programs should "do one ...
Hussien's user avatar
0 votes
1 answer
113 views

Is there any command line tool for purchasing anything online?

I continue to pursue ways to do everything from the command line and while it does not seem common whatsoever I am curious if there is one single example of a command line tool that allowed someone to ...
Julius Hamilton's user avatar
-4 votes
3 answers
646 views

coreutils ls summary

Why is there no summary option in coreutils ls command, like MS-DOS/Windows has? With summary option I mean: count the files and dirs and sum up their sizes. Update: It should read: "Even DOS/...
bashianer's user avatar
  • 153
10 votes
3 answers
6k views

What is the practical purpose of "./" in front of relative file paths (in the output from "find")?

Why are some relative file paths displayed in the form of ./file, instead of just file? For example, when I do: find . I get this output: ./file1 ./file2 ./file3 What is the practical purpose, other ...
Martin Vegter's user avatar
1 vote
1 answer
102 views

Is "running a folder" possible in Linux?

Is there a philosophy behind running a folder as an executable in linux? user@node main % ls -lash ./bin total 0 0 drwxrwxrwx 2 user staff 64B May 23 21:04 . 0 drwxr-xr-x 6 user staff 192B ...
Elijas Dapšauskas's user avatar
0 votes
1 answer
34 views

When filtering, never throw away information you don't need to

In this text, the author says When filtering, never throw away information you don't need to What does it mean in the context of applying UNIX philosophy?
Ashfame's user avatar
  • 121
1 vote
1 answer
2k views

What's the Unix way of handling split-tunnels

I want to be able to control in my servers which programs are connected to the regular internet and the ones which are only able to communicate through a VPN, in the most minimal, versatile and secure ...
José Ferreira's user avatar
0 votes
2 answers
2k views

Printing to the STDOUT vs writing to an output file directly [closed]

Is there any rule of thumb when the result of the program should be printed to the stdout by default, and when the more appropriate approach is to accept output file as one of the arguments and write ...
Al Bundy's user avatar
  • 181
-1 votes
2 answers
346 views

The UNIX Programming Environment by Kernighan and Pike [duplicate]

I have recently started reading "The UNIX Programming Environment" by Kernighan and Pike. My objective is to learn about the UNIX philosophy. My question is, Do I need to install UNIX on my ...
Kishan Dhakan's user avatar
8 votes
2 answers
3k views

Reading from dev/urandom - system behaviour

When reading from dev/urandom, with say head or dd, it’s of course expected that the output is always random and different. How is this handled by UNIX at a low level? Is the file naturally truncated ...
Woodstock's user avatar
  • 408
-12 votes
1 answer
179 views

Why do FOSS developers claim cross-platform support when their stuff is frequently broken on Windows in frustrating ways? [closed]

Two examples out of thousands I've countered: Bitcoin Core on Windows has a very annoying glitch which causes a cmd.exe (or similar) window to briefly appear and immediately go away, showing only for ...
K. Seer's user avatar
4 votes
1 answer
590 views

File ownership preservation with .tgz

Back with another probably very very basic UNIX question. I understand the premise of Tape Archive Zips (.tgz) is that they preserve uid, gid, permissions... However, it seems that this isn't portable....
Woodstock's user avatar
  • 408
-2 votes
1 answer
79 views

What requirements must a computer program meet to be considered as part to the unix toolkit?

It is stated here that: The Unix operating system introduced the idea of a toolkit. That is, rather than having a few generalized and complex utilities programs, the system contains a toolkit of ...
Paulo Tomé's user avatar
  • 3,792
0 votes
1 answer
66 views

Why do Unix-like OS incremental & consolidating backup systems focus so much on filesystem backup as opposed to device backup?

This question is a bit of a cross-platform one in the sense that it's probably best answered by people with extensive knowledge of both Windows and Unix-like OSes. I run a mixed environment (Windows,...
jdrch's user avatar
  • 53
1 vote
0 answers
46 views

Do Unix Interface Naming Rules Exist? [duplicate]

I realized, that on Unix - systems a lot of weird interface acronyms exist: lo = loopback interface eno = ethernet interface, network interface card ens = ethernet interface, on newer Ubuntu ...
Erdinc Ay's user avatar
  • 1,020
1 vote
2 answers
88 views

Grep data in specific pattern

MY File: "DocumentCreationDate="2019-07-15T23:56:31" SampleID="1" entClassID="65535" ClientID="0" CardID="11209797"" Want to grep Pattern : CardID="11209797" The number may be different between "...
Vivek Nigam's user avatar
0 votes
0 answers
107 views

Are permissions like "---r-xr-x" useful?

Would a file permission tuple of "---r-xr-x", or something else without owner usability yet still with group/other usability ever be useful in the real world? I would love to see some use cases! ...
Mr. Minty Fresh's user avatar
5 votes
1 answer
925 views

Do other Unix-like kernels have stable syscall ABIs?

Linux has a stable syscall ABI, but NT doesn't, Windows just ensure Win32 ABI is stable, which will not trap into kernel space immediately. Lower level functions of Windows like nt.dll might change ...
炸鱼薯条德里克's user avatar
1 vote
2 answers
391 views

Why has there been so little innovation with autoconf configure scripts in the Unix and Linux ecosystem? [closed]

A great deal of time is lost at the time of ./configure; especially when dependencies are missing and the subsequent calling thereof. I've read many topics on this subject citing that caching the ...
Zhro's user avatar
  • 2,709
66 votes
3 answers
11k views

Why is Unix 'self-supporting'?

I was reading Ritchie and Thompson's paper about the Unix file system. They write, 'It is worth noting that the system is totally self-supporting'. Were the systems before Unix not self-supporting? In ...
aupreti's user avatar
  • 669
-1 votes
1 answer
80 views

is there a Base64-based dist?

Is there a Linux distribution or Unix version where everything is Base64 encoded in memory? I'm interested in the concept of being able to dump the entire system state and print it as a book.
jh436's user avatar
  • 7
5 votes
1 answer
2k views

Is UNIX System V's source still available?

I was wondering if the AT&T system V's source code still available.
pro neon's user avatar
  • 875
13 votes
2 answers
17k views

Why is the primary admin UID 501?

I understand* the primary admin user is given a user ID of 501 and subsequent users get incremental numbers (502, 503, …). But why 501? What’s special about 50x, what’s the historical/technical reason ...
user137369's user avatar
0 votes
1 answer
137 views

How should Linux have been designed, if differently? [closed]

If Linus Torvalds could have designed Linux differently, what should he had done differently? I use and like Linux. I'm happy that Linux is so established and works so well. It's still somewhat a ...
Niklas Rosencrantz's user avatar
11 votes
2 answers
31k views

How could one determine UID/GID of running process

Is there any way to retrieve UID/GID of running process? Currently, I know only way of looking it up in htop. But I don't want to depend on third-party tool, prefer to use builtin unix commands. ...
user avatar
0 votes
1 answer
208 views

Where should daemon status files go in the *nix hierarchy?

This is kind of a canonical question about the Unix/Linux filesystem. I am working on a little daemon that generates output like this every five minutes: Data1: 100 Data2: 201 Data3: 102 This data ...
Questionmark's user avatar
  • 3,975
78 votes
1 answer
15k views

Why a "login" shell over a "non-login" shell?

I have a basic understanding of dotfiles in *nix system. But I am still quite confused about this Difference between Login Shell and Non-Login Shell? A bunch of different answers (including multiple ...
Allen's user avatar
  • 1,015
0 votes
1 answer
141 views

Get the time sequence in Unix?

Actually I expect the output like from current timestamp to 10s+current timestamp ex: 11:49:01 11:49:02 11:49:03 ..... 11:49:10 But this output must be coming in banner output. Hint: I am able ...
user194644's user avatar
13 votes
2 answers
736 views

Should I output program's name when warning or error occurs?

If I'm writing a script or a program, should I output to stderr its name together with warning or error message? For example: ./script.sh: Warning! Variable "var" lowered down to 10. or: ./prog.py: ...
gsarret's user avatar
  • 143
1 vote
1 answer
434 views

Why can't unix be object oriented or at least organized [closed]

Why can't things in unix be represented as objects? For example, files are sort of objects, but they are all just files. I realize that this can be useful for providing a standard interface, but ...
Vityou's user avatar
  • 199
2 votes
0 answers
270 views

Is using threads still considered an anti-pattern? [closed]

Background In The Art of Unix Programming, Eric S. Raymond dismisses multithreaded programming as a performance hack that should be avoided. According to him, the biggest problem with threads is that ...
aochagavia's user avatar
2 votes
2 answers
2k views

Unix, Mac OS and Linux? [closed]

I am working to learn more about unix and linux for a project. I noticed that Unix is the parent system of Mac OS and also of linux. Are the two similar in scope of C based programming? And how ...
Callat's user avatar
  • 243
73 votes
12 answers
18k views

What's the philosophy behind delaying writing data to disk?

In Linux, a finished execution of a command such as cp or dd doesn't mean that the data has been written to the device. One has to, for example, call sync, or invoke the "Safely Remove" or "Eject" ...
marmistrz's user avatar
  • 2,742
5 votes
1 answer
4k views

Dependency hell: Why not create portable applications [closed]

Back in time to the ages when I was using Windows, applications were installed in an independent way. This left a lot of freedom to the end user/sysadmin to decide what and where to upgrade, what to ...
null_pointer's user avatar
5 votes
2 answers
677 views

Why should you avoid "stringently columnar" input formats?

Doug McIlroy, the inventor of Unix pipes and one of the founders of the Unix tradition, had this to say at the time [McIlroy78]: (ii) Expect the output of every program to become the input to another, ...
The Unfun Cat's user avatar
-1 votes
1 answer
280 views

What are the commands which will work in unix but won't work in linux [closed]

Pls list the command or the scenario which will work in Unix but will never work in Linux
khishore S's user avatar
5 votes
4 answers
2k views

Why is Linux "Unix-like" if its kernel is monolithic?

As I understand it, part of the Unix identity is that it has a microkernel delegating work to highly modular file processes. So why is Linux still considered "Unix-Like" if it strays from this ...
Steve's user avatar
  • 213
1 vote
1 answer
166 views

Has Unix been used by accountants and other non-programmers at AT&T in the 70s and 80s?

In the short documentary, Ken Thompson and Dennis Ritchie Explain UNIX (Bell Labs) it is mentioned, that Unix is not only an OS, but also a system around which a community could form. I find this ...
miku's user avatar
  • 673
26 votes
4 answers
5k views

Are Unix Internet sockets files?

I understand that "Everything is a file" is one of the major concepts of Unix, but sockets use different APIs that are provided by the kernel (like socket, sendto, recv, etc.), not like normal file ...
user3718463's user avatar
27 votes
4 answers
27k views

Is it correct to use certain special characters when naming filenames in Linux?

Is it correct to use certain special characters, as +, &, ', . (dot) and , (comma), basically, in filenames. I understand that you can use - and _ with no problem, but doing some research I have ...
Chris Klein's user avatar
7 votes
1 answer
661 views

Why does MV(1) copy objects if permission to move denied?

Does mv act as cp(1) if permission for process to move denied? If so, isn't it against the rule do one thing and do it well?
rich's user avatar
  • 73
10 votes
1 answer
13k views

What does Unix programming mean, exactly? [closed]

I thought I understood what the term Unix programming meant, but now, after reading about it in a kernel/C programming context, I feel like I need to clarify the meaning of this term. It is not clear ...
Brandt's user avatar
  • 324
55 votes
3 answers
18k views

A layman's explanation for "Everything is a file" — what differs from Windows?

I know that "Everything is a file" means that even devices have their filename and path in Unix and Unix-like systems, and that this allows for common tools to be used on a variety of resources ...
Mohamed Ahmed's user avatar
3 votes
1 answer
2k views

Mac OSX vs Linux Unix-ness [closed]

So I know that Linux is considered "Unix-like" while OSX is Unix. Why is this? I feel like Linux is much more "Unix-like" than OSX is. What makes OSX more "Unix" than Linux?
Aristides's user avatar
  • 149
32 votes
2 answers
3k views

Why is sort -o useful?

UNIX philosophy says: do one thing and do it well. Make programs that handle text, because that is a universal interface. The sort command, at least GNU sort, has an -o option to output to a file ...
strugee's user avatar
  • 15.1k
21 votes
2 answers
6k views

What makes an operating system "Unix-Like"?

I frequently come across the term "unix-like" on many web sites. There is no standard; it is just in the way it behaves. But if I were to develop a kernel from scratch, what would make it considered ...
one axon is missing's user avatar
7 votes
2 answers
2k views

Has the Unix Philosophy been abandoned in web application design? [closed]

The Unix Philosophy encourages the use of small, generically reusable cooperating programs that collaborate with forms of inter-process communication like pipes, fifos, sockets, as opposed to shared ...
dan's user avatar
  • 4,097
7 votes
1 answer
1k views

Correct handling of Python2 and Python3

What is the correct way running scripts that depend on python2.x but on a system where python3.x is aliased with python. The solution should take into account the following things : Python2 should ...
Mite Mitreski's user avatar
4 votes
1 answer
588 views

Unix and Linux without a file system?

I was reading Eric Raymond's the Art of Unix Programming, (Amazon and online) and at the very beginning of the book where he analyses what Unix does wrong he says: Having a file system at all may ...
NlightNFotis's user avatar
  • 7,605