Jump to content

Linux can go low level?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
GMailGuy

GMailGuy

    Learning Programmer

  • Members
  • PipPipPip
  • 60 posts
Well as title says.. With Linux can you go more low level and for example accessing a device from the Terminal directly.. instead like windows?
For example with Windows it is like this:

End User -> Operating System -> Hardware

Can Linux be both, like this:

End User -> Operating System -> Hardware
|-> Hardware

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
In linux, every device is represented as a file. When you write to the "file" you are sending instructions to the device. When you read from the "file" you are getting results from it.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
Even so, Linux and Unix are still User -> OS -> Hardware. The entire purpose of an OS is to interact with the hardware for the user.

#4
GMailGuy

GMailGuy

    Learning Programmer

  • Members
  • PipPipPip
  • 60 posts
@Winged: What would that mean? A Yes or a No?

@Lop:

I know that that is the aim of an OS, but I was just wondering if Linux would let you go that level

#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I think it's a no. You are still interacting with the OS.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#6
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
I am not understanding what you mean, but anyways if you program ASM (of course with a program from the OS) wouldn't that be still User -> OS -> Hardware? So i think that it is actually not possible to go much low level... I think.

#7
G_Morgan

G_Morgan

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 537 posts

GMailGuy said:

@Winged: What would that mean? A Yes or a No?

@Lop:

I know that that is the aim of an OS, but I was just wondering if Linux would let you go that level

You could create your own environment with Linux. You can alter the kernel or any of the userland, you can fiddle with init scripts, you can change the x-server. Practically everything is available to you.

Should you touch this without understanding it? Probably not.

If you are interested then look at the 'Linux From Scratch' project. Get a virtual machine running (VMware is highly recommended) and try completing it from within there. You will touch all the low level components of the OS in this.

There is a difference between using 'Linux' as it is meant in terms of distros and using Linux the kernel and fiddling to create a custom system.

//edit - you still won't be touching devices directly but you are much closer to them than in Windows. You would have to modify the kernel to achieve what you want.//