LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices

Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Uncategorized Entries with no category
Old

News: Konqueror file manager is as awesome as it was before

Posted 09-05-2013 at 04:44 PM by the dsc (linux-related notes)

KFM is the best filemanager known to man. It may not be obvious to many because the defaults don't fully exploit its potential. But once you tweak it, and get used to it, you realize that everything else comparatively sucks.

In recent updates it had some feature reversals, losing italics for symlinks on the "normal" file listing, the instant dir filter, and in-line renaming, but all these features are back again, in recent Debian testing updates.

The only...
Member
Posted in Uncategorized
Views 189 Comments 0 the dsc is offline
Old

Tip: creating symlinks to another folder

Posted 09-01-2013 at 07:46 PM by the dsc (linux-related notes)
Tags symlink

The syntax of "ln" requires full path information of the "source" file. Therefore, if you issue something like "for file in *.foo ; do ln -s ./$file /other-folder/somewhere/$(echo $file | sed s/foo/bar/) ; done", the produced symlinks will be empty.

To avoid that, the command must be:

for file in *.foo ; do ln -s $PWD/$file /other-folder/somewhere/$(echo $file | sed 's/foo/bar/') ; done

$PWD, the environment variable of the...
Member
Posted in Uncategorized
Views 187 Comments 0 the dsc is offline
Old

Ignoring lines starting with space, and other patterns in bash_history

Posted 08-25-2013 at 11:18 PM by the dsc (linux-related notes)
Updated 08-25-2013 at 11:22 PM by the dsc

It may be a little bit unsafe to have "rm something" commands in your bash history, if you also have the history easily accessible through up and down keys.

The following line will make bash history ignore "rm" and "shutdown":

Code:
export HISTIGNORE="&:rm *:shutdown *"
I don't know the syntax, but it works.

Some people have add there an expression to make bash's history ignore any line starting with...
Member
Posted in Uncategorized
Views 362 Comments 0 the dsc is offline
Old

Getting out of a dependency hell without reinstalling

Posted 04-18-2013 at 12:07 AM by the dsc (linux-related notes)
Updated 04-18-2013 at 09:44 PM by the dsc

I'm not suggesting it's really preferable in any situation or in any specific situation, I just found myself in a "what the hell" point and thought it worth a try, and it worked.

I was just thinking that it would be nice that for slideshow videos there was a variable frame rate, and turns out that it exist. I've found that the program handbrake can handle that easily, so I decided to install. Unfortunatelly it's only on Debians unnofficial multimedia repository, which can...
Member
Posted in Uncategorized
Views 775 Comments 0 the dsc is offline
Old

A good $PS1 for displaying long paths in the bash prompt

Posted 03-13-2013 at 11:29 PM by the dsc (linux-related notes)
Updated 03-13-2013 at 11:30 PM by the dsc
Tags bash, prompt, ps1

Code:
PS1='${debian_chroot:+($debian_chroot)}\t \u $(if [ ${#PWD} -gt 30 ] ; then myPWD="${PWD:0:12}/\W" ; myPWD="${myPWD:0:25}" ; else myPWD=$PWD; fi ; echo $myPWD) $ '
It will display full paths smaller than 30 characters entirely, but for longer paths it will get only the first characters of the whole path, and the fist characters of the last folder in the full path.

The end result is something like:

HH:MM:SS tuxguy /home/tuxguy/mystuf.../xmas...
Member
Posted in Uncategorized
Views 578 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 07:55 AM.

Main Menu

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration