LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 08-19-2006, 10:53 AM   #1
zathrus
LQ Newbie
 
Registered: Nov 2004
Posts: 14

Rep: Reputation: 0
Problem with shell commands.


Why is when I open a shell to type a command such as:
/boot/grub/menu.ls I get the response "no such file or directory"? That is not the only incident, I get the same response from other commands that I type in I know I have typed correctly, lots of times I copy and pase the command in the box. This has been going on for some time but now it's beginning to irritate me. What am I doing wrong?
 
Old 08-19-2006, 11:12 AM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
On my machine, /boot/grub/menu.ls[t] isn't a command, but a file (a synthetic link in fact, but that's almost besides the point). In order to do something with it, you need to specify a program to use, so:
Code:
less /boot/grub/menu.lst
will show you its contents.

What other commands have you tried which you aren't able to get to work as you expect?
 
Old 08-19-2006, 01:44 PM   #3
zathrus
LQ Newbie
 
Registered: Nov 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for your reply, it's quite obvious I need to do some homework. I have been using Mepis in the gui mode as a substitute for windows and have been quite pleased with it, but now I need to delve a little deeper.
 
Old 08-19-2006, 02:10 PM   #4
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
I'd suggest the RUTE guide for all things command line (you can get it as a pdf). I did a quick google search to find some good sites to learn about the command line, and specifically which programs are the most useful, but couldn't find anything (in under a minute! ), but this seemed like a fairly good place to start: http://www.tuxfiles.org/linuxhelp/cli.html

I find that the programs I use most regularly are the obvious ones: ls, cd, rm, mv etc. But for file manipulation, I use the vim editor, which is fairly complicated to use, but powerful as a result. To view files more quickly I often use less (or more). cat is useful as a way of opening a file onto the terminal. the pipe command | (usually ctrl backslash) allows you to take the output of one file, and use that as the input to another, so to display all the processes currently running, but only for the user zathrus, I'd type
Code:
 ps -ef | grep zathrus
where ps -ef shows all processes for all users, and then grep takes that output, and filters it for zathrus only.

The best way to learn is to use, so delve away

Enjoy!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic shell commands pppaaarrrkkk Linux - Newbie 7 02-05-2007 07:31 AM
Alias or shell script to confirm 'exit' commands from a shell rose_bud4201 Programming 2 03-08-2006 02:34 PM
commands in shell? kalleanka Linux - General 9 02-01-2006 07:38 AM
shell commands! krishlinux General 1 10-05-2003 04:47 AM
how to delete old shell commands a_hic Linux - Newbie 4 05-01-2003 06:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS

All times are GMT -5. The time now is 02:48 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