Re: [CAD_CAM_EDM_DRO] BDI
Posted by
Jon Elson
on 2002-05-27 22:36:52 UTC
Gene wrote:
there is a file in /usr/local/emc/programs called capper.txt~, you would
type
#rm /usr/local/emc/programs/capper.txt~
What you had commanded it to do is to remove the directory
capper.txt~ (which isn't a directory, of course) from /usr/local/emc/programs.
At least I think that is what that command would do, if it could be performed.
This would leave the directory capper.txt~ an "orphan" directory that
appeared in no higher-level directory, causing an error the next time
you booted and fsck checked the file structure. You don't want
to do this, as it makes a small mess on the disk. Use rmdir to remove
directories, or rm -rf to remove a whole tree of files and directories.
For the non-Linux people, here are some useful commands. (I was writing
this yesterday when the lights went out, so I'm starting over.)
ls list current directory
ls -l list curr dir with details
ls -al list curr dir with details, including files that begin with a "."
ls abc/d*e list files in subdir abc which begin with a d, and end with an e
cp a.b c.d copy file a.b to file c.d
more a.b list file a.b on screen, one page at a time
rm a.b remove (delete) file a.b
mv a.b c.d rename a file with name a.b to be c.d
lpr -Pprintername a.b Print file a.b through printer que "printername"
(requires printer queues to be created and running)
vi a.b edit file a.b with the horrible vi editor.
lsmod show what kernel modules are installed
cd a/b/c change current directory to subdirectory a/b/c
cd /usr/local change current directory to /usr/local (starting from the root dir /)
mount /dev/fd0 /mnt/floppy mount a floppy disk and connect to mount point /mnt/floppy
umount /dev/fd0 unmount the floppy
grep "abc" filename search file filename and print out any lines which contain text string abc
./compile 2>&1 | tee compile.log
This is a pretty bizzare one. It runs the command file compile, combines
both stderr and stdout outputs from it into one stream, and then pipes
that to tee, which prints it on the screen AND copies it to file compile.log
This is useful when recompiling EMC, and saving the output for later searches
with grep.
Useful files to know about :
/etc/passwd file with passwords and usernames
/etc/shadow a file which hides the passwords in a secure file, since
certain functions of Unix/Linux depend on being able to read the
/etc/passwd file.
/etc/fstab describes known file systems/partitions
/etc/lilo.conf sets up the lilo boot loader to load different kernels or OSs.
/etc/X11/XF86Config file that sets parameters for the XFree86 Xwindows
server
/etc/hosts lists known hosts and their IP address for networking
I hope this helps some people who are struggling with Linux.
Jon
> What is the proper way to delete? I tried #rmDon't put the trailing / on the end, if you mean to delete a file. So, if
> /usr/local/emc/programs/capper.txt~/
> And it follows with "remove (path)? then back to the command prompt, but
> it doesn't remove the file
there is a file in /usr/local/emc/programs called capper.txt~, you would
type
#rm /usr/local/emc/programs/capper.txt~
What you had commanded it to do is to remove the directory
capper.txt~ (which isn't a directory, of course) from /usr/local/emc/programs.
At least I think that is what that command would do, if it could be performed.
This would leave the directory capper.txt~ an "orphan" directory that
appeared in no higher-level directory, causing an error the next time
you booted and fsck checked the file structure. You don't want
to do this, as it makes a small mess on the disk. Use rmdir to remove
directories, or rm -rf to remove a whole tree of files and directories.
For the non-Linux people, here are some useful commands. (I was writing
this yesterday when the lights went out, so I'm starting over.)
ls list current directory
ls -l list curr dir with details
ls -al list curr dir with details, including files that begin with a "."
ls abc/d*e list files in subdir abc which begin with a d, and end with an e
cp a.b c.d copy file a.b to file c.d
more a.b list file a.b on screen, one page at a time
rm a.b remove (delete) file a.b
mv a.b c.d rename a file with name a.b to be c.d
lpr -Pprintername a.b Print file a.b through printer que "printername"
(requires printer queues to be created and running)
vi a.b edit file a.b with the horrible vi editor.
lsmod show what kernel modules are installed
cd a/b/c change current directory to subdirectory a/b/c
cd /usr/local change current directory to /usr/local (starting from the root dir /)
mount /dev/fd0 /mnt/floppy mount a floppy disk and connect to mount point /mnt/floppy
umount /dev/fd0 unmount the floppy
grep "abc" filename search file filename and print out any lines which contain text string abc
./compile 2>&1 | tee compile.log
This is a pretty bizzare one. It runs the command file compile, combines
both stderr and stdout outputs from it into one stream, and then pipes
that to tee, which prints it on the screen AND copies it to file compile.log
This is useful when recompiling EMC, and saving the output for later searches
with grep.
Useful files to know about :
/etc/passwd file with passwords and usernames
/etc/shadow a file which hides the passwords in a secure file, since
certain functions of Unix/Linux depend on being able to read the
/etc/passwd file.
/etc/fstab describes known file systems/partitions
/etc/lilo.conf sets up the lilo boot loader to load different kernels or OSs.
/etc/X11/XF86Config file that sets parameters for the XFree86 Xwindows
server
/etc/hosts lists known hosts and their IP address for networking
I hope this helps some people who are struggling with Linux.
Jon
Discussion Thread
Alan Marconett KM6VV
2001-07-16 18:31:14 UTC
BDI
allan_r9@h...
2001-07-16 19:28:46 UTC
Re: BDI
Alan Marconett KM6VV
2001-07-16 20:02:57 UTC
Re: [CAD_CAM_EDM_DRO] Re: BDI
Tim Goldstein
2001-07-16 20:11:40 UTC
RE: [CAD_CAM_EDM_DRO] Re: BDI
Jon Elson
2001-07-16 22:15:08 UTC
Re: [CAD_CAM_EDM_DRO] BDI
Ian Wright
2001-07-17 01:39:25 UTC
Re: [CAD_CAM_EDM_DRO] BDI
Ray
2001-07-17 11:54:34 UTC
Re: BDI
Alan Marconett KM6VV
2001-07-17 12:20:50 UTC
Re: [CAD_CAM_EDM_DRO] BDI
Alan Marconett KM6VV
2001-07-17 13:23:42 UTC
Re: [CAD_CAM_EDM_DRO] BDI
Alan Marconett KM6VV
2001-07-17 14:18:26 UTC
Re: BDI
Alan Marconett KM6VV
2001-07-18 15:59:03 UTC
Re: BDI
emserv@e...
2001-08-09 16:00:16 UTC
BDI
Weyland
2001-08-09 19:47:04 UTC
BDI
Donald Brock
2001-08-10 08:57:19 UTC
Re: BDI
Gene
2002-02-27 00:28:10 UTC
BDI
awemawson
2002-02-27 00:33:19 UTC
Re: BDI
Gene
2002-02-27 05:00:36 UTC
Re: [CAD_CAM_EDM_DRO] Re: BDI
Ed Fanta
2002-02-27 05:45:07 UTC
Re: [CAD_CAM_EDM_DRO] BDI
John Guenther
2002-02-27 05:45:45 UTC
RE: [CAD_CAM_EDM_DRO] Re: BDI
Jon Elson
2002-02-27 10:50:52 UTC
Re: [CAD_CAM_EDM_DRO] BDI
Gene
2002-02-27 12:44:51 UTC
BDI
Dave Lantz
2002-02-27 12:46:32 UTC
RE: [CAD_CAM_EDM_DRO] BDI
Gene
2002-02-27 14:15:59 UTC
Re: [CAD_CAM_EDM_DRO] BDI
Darrell Daniels
2002-02-27 22:12:52 UTC
Re: [CAD_CAM_EDM_DRO] Re: BDI
Dave Lantz
2002-02-28 05:05:53 UTC
RE: [CAD_CAM_EDM_DRO] BDI
Glen
2002-02-28 10:24:52 UTC
Re: [CAD_CAM_EDM_DRO] BDI
Gene
2002-04-12 11:13:50 UTC
BDI
Ray Henry
2002-04-12 18:58:25 UTC
Re: BDI
batwings@i...
2002-04-12 19:17:24 UTC
Re: [CAD_CAM_EDM_DRO] Re: BDI
Jon Elson
2002-04-12 22:52:24 UTC
Re: [CAD_CAM_EDM_DRO] Re: BDI
Ray Henry
2002-04-13 12:12:02 UTC
Re: Re: Re: BDI
Gene
2002-05-06 19:54:31 UTC
BDI
Gene
2002-05-07 09:48:40 UTC
BDI
Ray Henry
2002-05-07 16:32:16 UTC
Re: BDI
John Branlund
2002-05-07 16:44:14 UTC
Re: [CAD_CAM_EDM_DRO] Re: BDI
Tim Goldstein
2002-05-07 16:57:45 UTC
Re: [CAD_CAM_EDM_DRO] Re: BDI
Ray Henry
2002-05-07 20:11:20 UTC
Re: BDI
Jon Elson
2002-05-07 22:17:16 UTC
Re: [CAD_CAM_EDM_DRO] Re: BDI
Gene
2002-05-23 15:44:20 UTC
BDI
Jon Elson
2002-05-23 21:58:23 UTC
Re: [CAD_CAM_EDM_DRO] BDI
Ian W. Wright
2002-05-24 00:58:46 UTC
Re: [CAD_CAM_EDM_DRO] BDI
Ray Henry
2002-05-24 07:22:05 UTC
Re: BDI
Gene
2002-05-25 14:05:05 UTC
BDI
John Guenther
2002-05-25 17:44:11 UTC
RE: [CAD_CAM_EDM_DRO] BDI
William Scalione
2002-05-25 21:39:41 UTC
Re: [CAD_CAM_EDM_DRO] BDI
Jon Elson
2002-05-25 21:49:41 UTC
Re: [CAD_CAM_EDM_DRO] BDI
Ray Henry
2002-05-26 07:29:42 UTC
Re: Re: BDI
Gene
2002-05-27 14:04:00 UTC
BDI
Nic van der Walt
2002-05-27 17:46:17 UTC
Servo motor controller project
Jon Elson
2002-05-27 22:36:52 UTC
Re: [CAD_CAM_EDM_DRO] BDI
Vajk Fekete
2002-05-27 22:39:49 UTC
Re: [CAD_CAM_EDM_DRO] BDI
Nic van der Walt
2002-05-28 14:52:15 UTC
Servo motor controller project
studleylee
2002-05-28 15:27:36 UTC
Re: Servo motor controller project
Peter Homann
2002-05-28 16:37:46 UTC
HSM Tapping Machine Article
doug98105
2002-05-28 17:25:10 UTC
Re: HSM Tapping Machine Article
Peter Homann
2002-05-28 17:42:17 UTC
RE: [CAD_CAM_EDM_DRO] Re: HSM Tapping Machine Article
Keith Bowers
2002-05-28 17:52:50 UTC
Re: [CAD_CAM_EDM_DRO] Servo motor controller project
Marcus & Eva
2002-05-28 19:30:18 UTC
Re: [CAD_CAM_EDM_DRO] Re: HSM Tapping Machine Article
Peter Homann
2002-05-28 19:53:26 UTC
RE: [CAD_CAM_EDM_DRO] Re: HSM Tapping Machine Article
chevalier121
2002-05-29 02:18:21 UTC
Re: Servo motor controller project
turbulatordude
2002-05-29 04:26:15 UTC
Re: HSM Tapping Machine Article
doug98105
2002-05-29 06:48:53 UTC
Re: HSM Tapping Machine Article
steel2chips
2002-05-30 07:42:41 UTC
Re: Servo motor controller project
Gene
2002-07-04 14:32:50 UTC
BDI
dakota8833
2002-07-05 05:30:59 UTC
Re: BDI
Ray Henry
2002-07-05 08:03:13 UTC
Re: BDI
Gene
2002-07-05 10:38:18 UTC
Re: [CAD_CAM_EDM_DRO] Re: BDI
Jon Elson
2002-07-05 12:05:58 UTC
Re: [CAD_CAM_EDM_DRO] Re: BDI