Download your favorite Linux distribution at LQ ISO.
Go Back > Blogs
User Name



Open SuSE

Posted 03-29-2016 at 04:51 PM by shsmith
Updated 03-30-2016 at 03:52 PM by shsmith
Tags open suse

I am getting annoyed.
I am studying for the Linux+ exam and I need to understand Yast and rpm packages, so I installed Open SuSE 13.1 (32 bit) on an older computer. For 2 days I have been trying to do updates. And for 2 days, updating has locked the computer up solid, forcing a reboot. I know, I can hear it now: dude, why didn't you install Fedora? Why didn't you install Cent? The fact is, I tried. Neither of those would install. Only Open SuSE would. This is turning out to be a nightmare...
LQ Newbie
Posted in Uncategorized
Views 193 Comments 0 shsmith is offline

N00b method to toggle some verbosity on command for bash scripts

Posted 03-28-2016 at 11:32 PM by the dsc (linux-related notes)
Updated 03-28-2016 at 11:34 PM by the dsc
Tags bash, newbie

Just something I came up with that is probably not how actual programmers/scripters(?) would advise, specially the parameter/flag thing which is beside the point here.

if [[ $1 == "v" ]] ; then

echo $@


:    # ":" is a "do nothing" command



echo normal output

ver verbose output $a
Posted in Uncategorized
Views 352 Comments 0 the dsc is offline

Welcome To My Blog

Posted 03-28-2016 at 12:23 PM by shsmith

Hi there, welcome to my blog! If you're wondering what I'm gonna talk about, well, so am I. I have been using Linux off and on since 2003 or there abouts. My first distro was Debian. Recently I got tired of microsoft's "I own you and you will use what I tell you to" attitude. I haven't booted into windows in a few weeks now.

The distros I'm running right now are Ubuntu 14.04LTS on my desktop and Linux Mint XFCE Edition on my laptop, which is an old Dell Inspiron E1505;...
LQ Newbie
Posted in Uncategorized
Views 199 Comments 0 shsmith is offline

Replace trash-cli with kioclient move $@ trash:/ for cross-partition trashing

Posted 03-27-2016 at 09:17 PM by the dsc (linux-related notes)
Tags trash

However arguable, some people want to trash by moving into another partition's trash folders. The linux/unix/whatever trash specifications theoretically prohibit that, but KDE's implementation doesn't. So a linked or bind-mounted trash into a different partition will behave normally, except it will move the file across, obviously.

If you also use trash-cli, which won't work with such hacks, it can be replaced with the kioclient command, that in turn can be scripted or perhaps even...
Posted in Uncategorized
Views 195 Comments 0 the dsc is offline

New file name generator script/function, to avoid overwrites w/o user input

Posted 03-27-2016 at 07:11 PM by the dsc (linux-related notes)

Usage examples:

cp/mv/ln/etc file11.txt $(newname "/some/path/file11.txt")

cp/mv/ln/etc file11.txt $(newname "/some/path/whatever.txt")

If there's a file11.txt or whatever.txt already there, it will rename automatically to file11(1).txt or whatever(1).txt, and (N+1) from then on.

The whole path/name must be between quotes because of spaces and such things.

May be dangerous and somehow make you lose files...
Posted in Uncategorized
Views 346 Comments 0 the dsc is offline


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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration