Free Republic
Browse · Search
General/Chat
Topics · Post Article


1 posted on 01/22/2019 3:39:20 AM PST by ShadowAce
[ Post Reply | Private Reply | View Replies ]


To: rdb3; Calvinist_Dark_Lord; JosephW; Only1choice____Freedom; Ernest_at_the_Beach; martin_fierro; ...

2 posted on 01/22/2019 3:39:42 AM PST by ShadowAce (Linux - The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: ShadowAce

Posted as a service for those who are having trouble falling asleep.


3 posted on 01/22/2019 3:44:27 AM PST by dinodino
[ Post Reply | Private Reply | To 1 | View Replies ]

To: ShadowAce

Lost me at:

“On a UNIX system, everything is a file; if something is not a file, it is a process.”


4 posted on 01/22/2019 4:27:40 AM PST by mistfree (It's a very uncreative man who can't think of more than one way to spell a word.)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: Quality_Not_Quantity

Bump


6 posted on 01/22/2019 5:08:29 AM PST by Quality_Not_Quantity (Even my cat voted Republican)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: ShadowAce

What is remarkable is UNIX is about 50 years old as an OS. A half-century old! And it is still the best foundation for a computer system to date.


7 posted on 01/22/2019 5:28:01 AM PST by Flick Lives
[ Post Reply | Private Reply | To 1 | View Replies ]

To: ShadowAce

Great reference source! It explains some of the differences between the file structures compared to MS. The file type table is great!


10 posted on 01/22/2019 5:55:25 AM PST by Openurmind
[ Post Reply | Private Reply | To 1 | View Replies ]

To: ShadowAce
Very informative, thanks for posting!
12 posted on 01/22/2019 6:41:12 AM PST by softwarecreator
[ Post Reply | Private Reply | To 1 | View Replies ]

To: ShadowAce
Thank you, for this and other linux threads. I am making the plunge 😀
13 posted on 01/22/2019 7:06:13 AM PST by Basket_of_Deplorables (Unredact the 99 page Collyer Report!!!)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: ShadowAce
"General overview of the UNIX-like OS file system"

Fixed it for you.

16 posted on 01/22/2019 11:58:00 AM PST by Paal Gulli
[ Post Reply | Private Reply | To 1 | View Replies ]

To: ShadowAce
Good post, but I think this kind of detail scares newbies.

"On a UNIX system, everything is a file; if something is not a file, it is a process."

Technically true, but even processes are files.

$ ps -ef | grep fox
zeugma    11226 10939  1 Jan16 ?        02:05:41 /usr/lib/firefox/firefox

$ ls /proc/11226
attr       clear_refs       cpuset   fd       limits     mem         net        oom_score      projid_map  sessionid  stat     task
autogroup  cmdline          cwd      fdinfo   loginuid   mountinfo   ns         oom_score_adj  root        setgroups  statm    timers
auxv       comm             environ  gid_map  map_files  mounts      numa_maps  pagemap        sched       smaps      status   uid_map
cgroup     coredump_filter  exe      io       maps       mountstats  oom_adj    personality    schedstat   stack      syscall  wchan

$ cat /proc/11226/status | head -3
Name:   firefox
State:  S (sleeping)
Tgid:   11226
$

/proc is really cool.

Back in the old days, when I'd try to help folk out with computers, I had a lecture that I called "The Fully Qualified File Name". Once I went through the entire lecture with someone they would actually understand how and why things were laid out the way they are on their computer, and how to organize and reference anything they wanted to. One of the most powerful tools for directory navigation is the '.' and '..' directories. Once you really understand relative pathnames, you understand a lot about disk structures. That was as true with DOS as it was for Linux. We would start with just the "cd" and "dir" commands because they are absolutely non-destructive, and go all over the disk, using ../. so they'd know the difference between absolute and relative paths and such. Fortunately under windows there was no such thing as symlinks so it was pretty straightforward.

I recall being able to demonstrate the fact that 'everything is a file' on DOS and early MS-Windows computers was to go to any directory and use the command: dir con, or dir prn. These two files, which represent your console/screen and printer respectively existed in every directory even though they don't show up unless you ask for the name(s) specifically. There were a few others as well that don't come readily to mind.

17 posted on 01/22/2019 12:00:37 PM PST by zeugma (Power without accountability is fertilizer for tyranny.)
[ Post Reply | Private Reply | To 1 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson