LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Some somewhat simple questions (https://www.linuxquestions.org/questions/linux-newbie-8/some-somewhat-simple-questions-261450/)

Radical Edward 12-01-2004 04:03 PM

Some somewhat simple questions
 
All right, I have a few questions here and I'm just kinda left wondering.

First, can someone tell me how to get the string representation of an executable file?

How do I find out when the last system reboot was?

Is there a Pascal compiler that is usually included with linux (if there is I can't find it.)?

nilleso 12-01-2004 04:09 PM

#1... not sure what you mean (there definitely are no .exe's )
try
Code:

file /etc/*
you'll get a listing like
/etc/auto_home: English text
/etc/auto_master: ascii text
/etc/autopush: ELF 32-bit MSB executable SPARC Version 1, statically linked, stripped
/etc/bootptab: ascii text
/etc/cfgadm: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped
/etc/chroot: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped

is that what your looking for?

#2. uptime

#3. Pascal? ...yikes :cry: ....dunno

ror 12-01-2004 04:11 PM

what distro? slackware comes with pascal on it's disks (it's not normally selected tho)

Radical Edward 12-01-2004 04:13 PM

Tell you the truth
 
Well to tell you the truth I'm really not sure myself what this person means by string representation. This is basically a homework assignment that I am looking for a little help with. The other anwers were helpful though. Thanks, If anyone else would like to add, please do :)

michaelk 12-01-2004 04:31 PM

BTW It as against the rules to help with homework.

ror 12-01-2004 04:35 PM

string representation eh?
shove a cat <file> in their face, if they complain tell em you dind't know what they wanted.

btw, I might have been confusing pascal and python in my last post, having had to have both I mix up the two a lot.

there's free-pascal on linuxpackages.net, try looking for that at your local distro's package vendor.

Radical Edward 12-01-2004 07:20 PM

Nah
 
No, it's not against the rules to get help with homework, it's against the rules to get help with tests. Man some people, as a matter of fact the teacher encouraged us to look such things up whever we could find the answers.


All times are GMT -5. The time now is 03:21 PM.