VectorLinux

Vectorbie Station => Vectorbie Questions => Topic started by: reb on February 14, 2008, 06:57:53 pm

Title: deleting a link (solved)
Post by: reb on February 14, 2008, 06:57:53 pm
How do you delete a link from one file to another?  I can make one, but I can't seem to find a way to delete one. I really would like to know how.  :)

reb
Title: Re: deleting a link
Post by: bigpaws on February 14, 2008, 07:08:46 pm
Quick Google: Linux remove symbolic link

http://www.newlinuxuser.com/howto-remove-a-symbolic-link/ (http://www.newlinuxuser.com/howto-remove-a-symbolic-link/)

HTH

Bigpaws

Title: Re: deleting a link (solved)
Post by: reb on February 15, 2008, 06:57:10 am

Thank you bigpaws,

I found the command "rm -r" and it worked wonders, even with the locked in final " / " .

reb
Title: Re: deleting a link (solved)
Post by: GrannyGeek on February 15, 2008, 10:41:16 pm
All of these file management tasks are very fast and easy with Midnight Commander. I suspect a lot of new users have never tried it, as it doesn't seem to be in the desktop menu ("Start menu") for some incomprehensible reason. To start Midnight Commander, open a terminal and type
mc
at the prompt. The common file operations are quite evident (function keys nicely listed at the bottom of the window). The menus give access to many more operations.

I would just highlight the symlink and hit F8 to delete it. If user doesn't have permissions to delete the file or symlink, su to root, open a terminal, type mc to start Midnight Commander, and you can then do anything anywhere.

Midnight Commander is a gem and has lots of hidden features. To find out about them, look in /usr/share/mc and read mc.hint (which is an absolute revelation of the goodies awaiting you in MC) and mc.hlp, which is essentially a detailed manual.

To change read, write, and execute permissions on files, highlight the file and hit Control-x, c. For most files not in your home directory, you'll need to run MC as root in order to do this.  It's an easier front end for chmod. To change ownership, highlight the file and hit Control-x, o. This is a front end to chown.

Give it a try!
--GrannyGeek
Title: Re: deleting a link (solved)
Post by: toothandnail on February 16, 2008, 10:43:48 am
All of these file management tasks are very fast and easy with Midnight Commander. I suspect a lot of new users have never tried it, as it doesn't seem to be in the desktop menu ("Start menu") for some incomprehensible reason. To start Midnight Commander, open a terminal and type
mc
at the prompt. The common file operations are quite evident (function keys nicely listed at the bottom of the window). The menus give access to many more operations.

I'd have to second that. Nothing puts me off a distribution faster than finding it doesn't have Midnight Commander installed by default (SuSE and Ubuntu are both examples, since neither of them has it in a default install any more).

I create a launcher for it as one of the first things I do after installing Vector. I use Wbar, but its easy enough to do as a launcher for the normal Xfce panel. I also like to use Aterm, since it is light and fast compared to the normal Xfce terminal. My launcher command line for MC looks like this:

Code: [Select]
aterm -g 102x34 -fn 6x13 +tr +sb -e mc
That gives me a somewhat oversize window (good for seeing long file names), sets up small fonts which I prefer to the default Vector fonts, turns off transparency and disables the scroll bar (which is pretty useless for MC.

While I can perform most of the tasks I use it for from the command line, it is so much quicker and easier to do using MC that I always have an MC window open in the background somewhere.

paul.
Title: Re: deleting a link (solved)
Post by: GrannyGeek on February 18, 2008, 05:04:02 pm
My launcher command line for MC looks like this:

Code: [Select]
aterm -g 102x34 -fn 6x13 +tr +sb -e mc
That gives me a somewhat oversize window (good for seeing long file names), sets up small fonts which I prefer to the default Vector fonts, turns off transparency and disables the scroll bar (which is pretty useless for MC.

aterm isn't included with 5.9 Standard. I'm sure it's in the repos, though I've never looked. I love XFce's Terminal because it has tabs so you can have several screens open within one instance of Terminal, it has menu commands for setting up things like fonts, size, scrollbar, etc., it can copy from the menu instead of just swiping, it can paste with Control+Shift+V instead of the middle mouse button, and other reasons. I don't like terminals that require stuff like -fn and the other modifiers that you listed because I can't remember them when I need them. man pages generally leave me confused. Terminal opens instantly on my systems; I don't know how it runs on lesser machines because I got rid of my last clunker (500 MHz, 512 megs) a couple of years ago.

I disagree about the scrollbar being useless for Midnight Commander. The scrollbar doesn't work if you're looking at the MC file manager itself, but if you open a terminal from Midnight Commander with Control+o and the listing takes up more than one screen, the scrollbar allows you to move down and up in the listing, which is extremely handy. I use Control+o very frequently in Midnight Commander. It toggles between the MC file manager and a terminal and will open in the same directory you have open in MC.

Quote
While I can perform most of the tasks I use it for from the command line, it is so much quicker and easier to do using MC that I always have an MC window open in the background somewhere.

I don't like to use the command line for file operations because I can't remember the syntax. Like you, I have Terminal with two or more tabs running nearly all the time.
--GrannyGeek