Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 days ago.
Improve this question
I have an assignment in my OS design course and my instructor has asked us to open and view the source code of any of the functions (like the source code of copy or paste, something like that) of the kernel of our choosen linux distro.
I have searched a lot but I coudent find a way to do that from the terminal. Is there a way to do this via the terminal?
Searching on google keeps leading to websites that have the kernel source code
Here is the source code of GNU's core utilities. The source code won't be available from your own machine, there is no need to have uncompiled code. But you could use a C decompiler to watch it. These programs are usually located under /usr/bin
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am writing a console application in visual c++, and I want to display the system information like one displayed when we right click on Computer icon on desktop. I want to display the information like name of processor, its speed, RAM (how much used and how much free), hard drive (whether it is fixed or removable), name of computer, Windows OS version and edition name, etc. Help appreciated.
There is different function for that. If you are on Windows and are looking for the windows version : this function should be ok : https://msdn.microsoft.com/en-us/library/windows/desktop/ms724451%28v=vs.85%29.aspx
And for the hardware information you can find some of them thanks to this function : https://msdn.microsoft.com/en-us/library/windows/desktop/ms724381%28v=vs.85%29.aspx
Hope this helps
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
So what I'm wanting to do is pretty lame. Anyway, what I'm wanting to do is basically make a bot that will do some specified tasks for me.
I have an emulator on my laptop that when open, operates like an Android phone, and I'm using Snapchat on it. What I have been trying to do is make it send my 'streaks' on Snapchat a picture everyday at specified times. I have tried using a Macro Recorder to do this, but the loading time varies.
My questions are:
1) What programming language should I use for this?
2) What would be the best application to use? (Like Notepad, or some other application)
Any help is appreciated :)
Have you heard of autohotkey (AHK)? It's a macro app, but also a very powerful programming language. Entire apps have been written in it.
You can also use it to control other programs.
reference:
http://ahkscript.org/
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I have two Questinos:
1- Is there any scratch (any text file or so) for the Linux Kernel?
2- If yes, then where can i find it? (I search the net but can't find. Maybe I don't use correct words!)
Thanks alot
Edit:
Go to this page: en.wikipedia.org/wiki/PDP-7 the sentence for cite note 4 is as follow: In 1969, Ken Thompson wrote the first UNIX system in assembly language on a PDP-7. Then I look for what he has written!
You have all the source files in the kernel Git repository, some thousands of text files, with the millions of lines that compose the Linux kernel. It is a HUGE thing...
Search for 'linux kernel sources'
If by "scratch" you mean you are searching for the very origins of Linux Kernel, then the answers are:
1) Kind of, sort of yes
2) https://www.kernel.org/pub/linux/kernel/Historic/v0.99/
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
So the question is pretty straightforward. My idea is pretty simple, just copy the executable under /usr, then add the path into the environment path variable.
Is that all? Or do I miss something?
Sorry if this question is dumb, I'm not a noob to Linux but I am not sure about this question.
I mean it's pretty much gonna work but I don't know if it's the "standard" way to do it.
Don't write an install script at all.
Package it for the popular package managers or have someone package it for you.
The most popular are
dpkg/apt used by Debian, Ubuntu, Linux Mint and friends
rpm/yum used by RedHat Linux, openSUSE and fiends
pacman used by ArchLinux and fiends
emerge used by Gentoo and fiends
Yep, all you need to do is copy the executable (as long as you have no dependencies). If you put it in /usr/bin, you don't need to modify the path, as it's in there by default.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
This is an incredibly dumb question, but I don't know the answer. Apologies in advance.
I want to download a repo of someone else's code from GitHub to work on it. In a Unix-y filesystem, where is the most conventional place to put it?
I've been reading about standard directory structure on Wikipedia and it looks like below opt might be the most appropriate place. Is that correct?
I'm using MacOS, so the alternative would be for me to create a custom folder under /Users/me, but I wondered if there was a conventional place for working on code within the standard Unix directories.
It depends on your usage plans. If this is code you want to hack on, typically your home directory is the right place, since this is private to your unix user. I personally make a 'dev' subdirectory and put code in there (mine or other people's, via github).
If you're looking to install this software system-wide, the answer varies slightly by the system. /opt is a reasonable choice in most cases, as is /usr/local.