UbuntuThis forum is for the discussion of Ubuntu Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I don't want paths along with the file name with trailing lines after them as in Marius' script (googlecode.com); I don't want the name in hex or some other strange and invidious form that is useless in a text editor or a terminal emulator; I just want the file name of the file I've clicked on on the Desktop or in some Nautilus window, regardless of what view mode I happen to be "in."
Is this even possible? And why in the world should I have to ask for this capability? Maybe the folks who work on Nautilus need to be reminded that it also takes an add-on or two to do this in Windows, something that's only been necessary since some jack-arse came up with the idea that Edit>Copy in a file navigator absolutely and definitely, without exception, meant the file and not just its name.
And while I know no one is going to pay attention to the next thing I'm going to write, I'll write it anyway.
I am aware that I can copy a file name by right-clicking on it and selecting Rename. (That's my other persistent annoyance with Nautilus. It seems to be the last and only GUI file navigator where this is even necessary when one wants to rename a file.)
So I ask again: Is it possible to copy just a file name in Nautilus, or should I go looking for another file navigator? I already have GNOME Desktop running on top of a Kubuntu install, because in my opinion Plasma is a mural gallery and not a desktop. If I must, I'll run something else on top of Nautilus just to have the ability to choose whether or not to copy a file's name or its contents along with the name.
Maybe I'm too much the optimist, but I'm hoping I won't have to.
Last edited by SilversleevesX; 12-24-2011 at 11:59 AM.
Reason: Decided to be polite towards the end.
So. nobody is going to bother reading and answering your question? Optimist? Maybe I shouldn't then, but I will. I do know the answer.
It's very simple to copy the filename. Right-click on the file in Nautilus. From the list that appears choose "properties". From the window that appears, you will see the filename and on another line the path, both as text. Copy whatever parts of the text you want. This is so simple and fast. You need to calm down, stop flaming, ask polite questions, and learn. Then you can advance a step closer to the intelligence level of the Linux developers. I say it's ignorance to spend time writing a script or a program to do this. Hopefully two simple, fast steps are not too much trouble.
Learn all about that properties window. You can do a lot of things there easily with files- even change what app opens the file, and the file permissions.
Nobody in Linux and Ubuntu owes you anything- they all work for free and should be appreciated.
Nobody connected with Linux needs to be reminded of a thing such as this. You can't even do this that easily in Windjunk. You need to learn the ropes in Linux just like for other operating systems. There is a manual for Ubuntu on the internet, and you can ask questions here or in the Ubuntu forum.
Your second complaint- Windjunk is no easier, and right-click/rename is also in Windjunk. Also in Nautilus, when you first paste a file into a folder it will be highlighted to be renamed by just typing a name over the highlight.
Are you asking for a feature such as right-click >> Copy Filename (to clipboard)?
If so, that could probably be done with a Nautilus extension written in Python.
I thought so.
And thanks, too, for satisfying my curiosity: I had the impression a lot of GNOME parts & pieces were still "done up," if you'll allow, in Python, but I wasn't sure. Then again, with Nautilus being one of the older and more common of its elements, I probably should have gone ahead and assumed it still was.
Too bad I don't know how to script in Python. Is it one of those languages for which folks accept commissions to take on projects? Or is that class of thing more with C and COBOL and the like?
Last edited by SilversleevesX; 12-25-2011 at 10:08 PM.
Reason: Tangential questions added.
It's very simple to copy the filename. Right-click on the file in Nautilus. From the list that appears choose "properties". From the window that appears, you will see the filename and on another line the path, both as text. Copy whatever parts of the text you want. This is so simple and fast...
It would be great if that actually worked... (tested with Nautilus 2.30 and it does not)
I'll have to make a sticky of that one.
Added with tongue firmly in cheek: No sense in removing it from the stack either, as I'll probably find myself jotting down more of them as I re-orient myself with Ubuntu, GNOME, etc.