LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-17-2006, 02:21 PM   #1
c4nk
Member
 
Registered: Oct 2006
Distribution: CentOS 4 :) and Win Xp ;(
Posts: 32

Rep: Reputation: 15
Few commands in bash


Hi, i got 2.6.18-1.2708.fc6 and i use bash. I wanted to know how I can search my linux box through bash, and also how can i view the hardware that my linux is recognizing. And how can I view how much of my hdd i have used up.

Last edited by c4nk; 12-17-2006 at 02:25 PM.
 
Old 12-17-2006, 02:24 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Code:
man find
man lspci
will get you started.
 
Old 12-17-2006, 02:43 PM   #3
c4nk
Member
 
Registered: Oct 2006
Distribution: CentOS 4 :) and Win Xp ;(
Posts: 32

Original Poster
Rep: Reputation: 15
I typed in my terminal "man lspci" and it gave me a lot of ingo about this command, but when i typed in the terminal "lspci" or "lspci -vvxxx" as sugested in man page it said that the commands are not found. also when i type find and a file thats not in the curent folder it wont find it.

Last edited by c4nk; 12-17-2006 at 02:44 PM.
 
Old 12-17-2006, 02:49 PM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
For lspci, you probably need to be root. Or it's just not on your path; in Slackware, for example, you need to type "/sbin/lspci".

For find, tell me what you were looking for and what command you used.
 
Old 12-17-2006, 03:00 PM   #5
c4nk
Member
 
Registered: Oct 2006
Distribution: CentOS 4 :) and Win Xp ;(
Posts: 32

Original Poster
Rep: Reputation: 15
"/sbin/lspci" worked even when i wasnt root, and when using the find command i typed "find linux-intro.pdf" to see if its gonna find the pdf file, but it just says no such file or directory. I think it only searches the directory I am currently in, might be wrong.
 
Old 12-17-2006, 03:10 PM   #6
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Code:
find . -type f -name "linux-intro.pdf"
When I said "man find", I meant it. find is a complex command and you have to read the man page. There are examples at the end of it which help you to get started.
 
Old 12-17-2006, 09:01 PM   #7
c4nk
Member
 
Registered: Oct 2006
Distribution: CentOS 4 :) and Win Xp ;(
Posts: 32

Original Poster
Rep: Reputation: 15
Also is there a bash command that tells you how much space u got free on ur hdd and how much is used?
 
Old 12-17-2006, 10:11 PM   #8
c4nk
Member
 
Registered: Oct 2006
Distribution: CentOS 4 :) and Win Xp ;(
Posts: 32

Original Poster
Rep: Reputation: 15
I cant open a folder when using this command "cd /my music/mp3/acdc" because it does not recognize the space it says /my does not exist.
 
Old 12-17-2006, 10:12 PM   #9
igorc
Member
 
Registered: May 2005
Location: Sydney, Australia
Distribution: Ubuntu 5.04, Debian 3.1
Posts: 74

Rep: Reputation: 15
Here you go:
# df -h
for the disk space. For the folder problem - put the folder name in quotas when you have a space in the name:
# cd /"my music"/mp3/acdc

Last edited by igorc; 12-17-2006 at 10:14 PM.
 
Old 12-17-2006, 10:51 PM   #10
c4nk
Member
 
Registered: Oct 2006
Distribution: CentOS 4 :) and Win Xp ;(
Posts: 32

Original Poster
Rep: Reputation: 15
Thanx a lot man.
 
Old 12-18-2006, 02:19 AM   #11
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
find is a confusing program to use at first. It's worth finding some tutorial though - it's an amazingly useful command.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with bash commands cmfarley19 Linux - General 6 07-14-2006 08:04 AM
bash commands Obie Linux - Security 4 08-15-2004 02:42 PM
Help with BASH Commands rridler Linux - Newbie 3 04-16-2004 04:43 PM
Bash commands PhuckFonix Linux - Newbie 2 03-30-2004 07:13 PM
Bash commands wprescott Linux - Distributions 6 04-27-2002 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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
Open Source Consulting | Domain Registration