LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2004, 05:50 PM   #1
LouisTheDamned
LQ Newbie
 
Registered: Mar 2004
Posts: 18

Rep: Reputation: 0
Stupid Newbie Questions Part 3


Some of these questions might be best answered by a fellow
windows emigrant


1. I read on here somewhere that i can identify an executable type
using the file command. So far so good. Ive noticed mainly ELF
files on my Mandrake 9.1 system, but I know there are many others.
Why so many and what are they? Is this like variations of .bat files,
variations of .exe files? both?

2. I'm still looking a a good answer to "deltree" from MS-DOS. Rmdir
wont remove a directory unless its empty. Any suggestions? Is this
terminal Dependant?

3. Does anyone know of a good spyware scanner? Do I need one
in Linux?

4. Is there an equivalent to the autoexec.bat or the startup folder?

5. In windows I know the critical files needed for the system to
run and load. What are those files in Linux and which can
I edit in emacs?


Thanks in advance
 
Old 04-07-2004, 06:00 PM   #2
Khabi
Member
 
Registered: Aug 2003
Location: Arizona
Distribution: Gentoo
Posts: 142

Rep: Reputation: 15
1) I'm not to sure what you mean here, but I'm guessing you're talking about shell scripts? You can give a shell script +x permissions and run it just like an executable, but most commonly they're run via 'sh shellsciptnamehere'

2) To remove a non-empty directory use the recurisive option of rm. So it would be 'rm -r directoryname'. Also if you don't want to sit and tell it its okay to delete the files you can add '-f' to force it to say okay to each file. *CAUTION* If you messup with that command its REALLY easy to delete alot of stuff you don't want to. like if you did 'rm -rf /' it would DELETE EVERYTHING ON THE SYSTEM. Just be carefull.

3)I personally haven't heard of any linux specific spyware. That doesn't me it doesn't exist tho. You might want to occasionly check for rootkits tho. For that download CHKROOTKIT from here http://www.chkrootkit.org

4)Assuming you're using bash as your shell you can edit .bash_profil in your home directory. You might wanna learn some bash scripting first tho.

5) heh, thats kinda a broad topic so I don't wanna touch it. Anyone else wanna do it?
 
Old 04-07-2004, 06:25 PM   #3
LouisTheDamned
LQ Newbie
 
Registered: Mar 2004
Posts: 18

Original Poster
Rep: Reputation: 0
1) I'm not to sure what you mean here, but I'm guessing you're talking about shell scripts? You can give a shell script +x permissions and run it just like an executable, but most commonly they're run via 'sh shellsciptnamehere'

1. So are you saying that are only two major kinds of executables?
Or are you saying all executables are called scripits and only the attributes
determine how i run them? Hmmm... that doesnt make sense unless the
terminology is strange. Could someone please start from the top?

2. Thanks that was just was i was looking for! :-)

3. Probably nothing for me to worry about then.

4. Hmmmmm... didnt really seem to be much there. Ill figuire this out
later I guess.

5. Its cool. Probably shouldnt have posted that one in this forum. But
If anyone wants to take a shot...
 
Old 04-07-2004, 06:54 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
http://www.linuxquestions.org/questi...=&threadid=734 #5-I think this is how you should do that!
 
Old 04-07-2004, 07:01 PM   #5
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
sorry thats not it;you could compile your kernel,I would not edit anything,david
 
Old 04-07-2004, 07:04 PM   #6
LouisTheDamned
LQ Newbie
 
Registered: Mar 2004
Posts: 18

Original Poster
Rep: Reputation: 0
In response to the last two posts....

I dont understand what you are saying.
 
Old 04-07-2004, 07:16 PM   #7
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
most of your configuration files will be found in /etc. any editing of them can be done w/any editor, providing you have permission to the file. if learning emacs is what you'd like to do then take a look here

http://www.google.com/linux?hl=en&lr...=Google+Search

if just configuring your system, then the above information should suffice. hope that clears up # 5 a little.
good luck.
 
Old 04-07-2004, 07:19 PM   #8
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
http://www.linuxquestions.org/questi...threadid=73436 this is it,couldn't get it all before,you can fine tune your kernel to load only what you need,is that what you mean.david
 
Old 04-07-2004, 08:08 PM   #9
mbegovic
Member
 
Registered: Nov 2003
Location: Vancouver, Canada
Distribution: Currently FC3
Posts: 342

Rep: Reputation: 30
Re: Stupid Newbie Questions Part 3

Quote:
Originally posted by LouisTheDamned

1. I read on here somewhere that i can identify an executable type
using the file command. So far so good. Ive noticed mainly ELF
files on my Mandrake 9.1 system, but I know there are many others.
Why so many and what are they? Is this like variations of .bat files,
variations of .exe files? both?
I'm also not sure what you meant by this. If what you need is just to see what files are executable, one way to do it is by using the --classify or -F switch with the ls command. In Mandrake 9.2 ls has the --classify switch truned on by default, I'm not sure about Mandrake 9.1. When you go:

ls --classify /foo

You get (for instance):

executable_file* directory/ symbolic_link@

Where the last character (* for executable file, / for directory, @ for symbolic link) is not part of the file name, but its type. In Mandrake /usr/bin contains executable links to all of the apps installed on the system.

I have no idea if this helps or not.

Regards,
 
Old 04-07-2004, 10:34 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,965

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
To confuse the issue on executable files. .. My brain is tired so this might be incoherent.

linux does not use file extensions to determine if the file is exectuable. Instead it uses permissions. See chmod for details.

You can execute a script file but it is the shell that interprets and executes the instructions. An application i.e. a compilied program is a binary file which contains some header stuff and instructions that the CPU executes. BTW ELF stands for Executable and Linking Format. Windows has its own file format of which the name eludes my brain at the moment as does the original linux file format name.

ELF is the standard for linux binary executable files. An interpreted language usually has the interpreter name in the first line of the file and the programs are just ASCII text files. For convience some extensions are used like sh for shell scripts and pl for perl files.

Clear as mud
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stupid Newbie Questions PapaSmurf88 Mandriva 4 05-21-2005 02:09 PM
Stupid newbie questions Octavius Linux - Newbie 18 01-28-2005 08:26 AM
Gernal Noobie Questions Part 2 LouisTheDamned Linux - Newbie 1 03-23-2004 04:29 PM
Some general, stupid newbie questions... figgypower Linux - Newbie 1 08-20-2003 09:56 PM
stupid newbie questions about linux retroman Linux - Newbie 3 03-24-2003 04:40 PM


All times are GMT -5. The time now is 06:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration