I'm using minimalistic WM, which is controlled by keyboard..
The main question is it possible ?
How ?
for example, Mod6
I know how to remap existing modifiers, but not how to add new ones.
I'm using arch linux.
Is it possible to automatically rename a file when it's placed in a specific directory?
For example I have a directory named "dir0".I move or copy a file named "file1" to "dir0".then "file1" should rename to "file1_{current timestamp}"
The 40k-rep-heavy user Gilles commented on this question Why do you need the "./" when executing programs in the current directory? (ups - why is no link-button here?) that it is a possible duplicate.
Looks like a plain-old-real-exact duplicate to me. I flagged it, but there is no exp...
im using Microsoft Virtual PC 2007 to run a virtual linux, but after som time i cant login to it, not from the instance on the localmachine or ssh in to the machine geting the same response on both,, i get to type both username and password but after that is just stops. Not finishing the login pr...
@MichaelMrozek: Spelling has never been a strong point, but it's gotten worse since my daily-use language is now a 100% phonetic one. Even stranger is the homophone mistakes I've started making when I right. Still that's the first time I've used weight for wait! Thanks for the fix. (<turns red> I just noticed right/write ... I wasn't trying to be funny, just an embarrassing case in point).
On Linux, I moved a directory to another directory using mv, and in another shell, my working directory happened to be the directory that was moved.
I ran hg pull in that shell, and to my surprise, it ran correctly in the new working directory - without me having to type cd.
How did that work?
i'm using ubuntu 11.04 64bit. I have to programm some realtime application on Linux, but don't know whether the standard installation of ubuntu has CONFIG_HIGH_RES_TIMERS enable. How can i check it?
Thanks
I am using iptables's logging feature to debug my network activity. I use certain prefix with --log-prefix parameter to uniquely identify messages in kernel log belonging to iptables output, for example ::IPT::LOG::.
How can I configure rsyslog to redirect messages tagged that way into a separat...
I'm using openconnect to connect to vpn. After entering my credentials, I get this:
POST https://domain.name/...
Got CONNECT response: HTTP/1.1 200 OK
CSTP connected. DPD 30, Keepalive 30
Connected tun0 as xxx.xxx.xxx.xxx, using SSL
Established DTLS connection
Running ifconfig shows I have a n...
@Caleb No, not even in ksh or zsh extensions. Bash, ksh and zsh have regexp matching constructs but not for globbing, only as string operators. Zsh has a numeric glob pattern, e.g. <9-11> matches 9 and 09 and 000010 and 11 but not 8 or -1 or any non-digit.
I'm writing a module for the Linux kernel. When this module is ready, I'd like it to run in any device running the kernel.
How can I test it in an Android phone? Do I need to recompile the whole tree for that phone with the module in to test it? If so, how can I do that? Is there some kind of in...
I have many files in a specific repository and i must find a file which has a specific string in its content (actually referencing the file Version.cc.in). What is the best solution to find it?
Since Unix is 40 years old, Unix is older than the invention of the computer mouse. (actually only 3 years if Unix is from 1969 and the mouse from 1972) How in the world did a new user do anything on Unix without copy & paste? I know they always had a text editor with copy/paste, but every...
Usually you would do this programatically at the time you create or move the file, but it is possible to trigger a script whenever a file gets created or moved to a folder using incron. Setup your tab file using incrontab -e with a line like this, but with your paths of course:
/path/to/dir0 IN_...
I figured it out using a case statement, but I couldn't figure out how to make that match in a normal test statement.
I am using iptables's logging feature to debug my network activity. I use certain prefix with --log-prefix parameter to uniquely identify messages in kernel log belonging to iptables output, for example ::IPT::LOG::.
How can I configure rsyslog to redirect messages tagged that way into a separat...
Seems like this should have been an edit and the answers can be merged. The rsyslog specific one can be the "right" answer, and my other answers can just be around to show the solution for other systems.
The second question is the same guy with exactly the same issue looking for the same solution, just with more specific data about the available software.
If you don't agree I won't be offended :) Just seemed kinda weird to me having two copies of it so I threw a vote out there.
Perhaps closing/merging the FIRST one instead of the new one would make more sense so that the best written question is the open one.
@Caleb Where did you get *_[0-9]\{10\}? it just matches things like foo_3{10}. In bash you can write if [[ ! ( $1 =~ _[0-9]{10}$ ) ]] or if [[ $1 != *_[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] ]].
@Gilles Actually I tested it and in the case statement it does match exactly ten digits.
This is what I couldn't find: [[ ! ( $1 =~ ... what IS that and why is the syntax I wanted supported there and in the case statement but not in a regular string pattern match?
I was trying to write an iso to a flash drive. I mistakenly thought that all /dev/sda* are flash drives attached to the system. I wasn't sure how to figure out which was which, so I just unplugged my flash drives and overwrote them all. In retrospect.... this was unbelievably dumb.
So I now have...
Weird. Is that new in a recent bash version, or does it require an option? With bash 4.1.5: `bash -c 'case $0 in [0-9]\{2\}) echo yes;; esac' '12'` → `` `bash -c 'case $0 in [0-9]\{2\}) echo yes;; esac' '1{2}'` → `yes`
@Caleb =~ does an ERE match. case, globbing and == do a shell pattern match.
I could make it work in Ubuntu, due to this answer. But the same approach shows no result in Fedora 15 (64 bits).
The device is an Asus USB N10 (wireless-usb converter): Bus 001 Device 003: ID 0b05:1786 ASUSTek Computer, Inc.
Any idea how to make it work? Fedora don't came with this driver?
@Gilles Same results here. I took out my case and put in your ERE match in my answer. I can only think I must have had some wrong line un-commented when I was testing earlier.
@Jez Mine is only in passing, I use a minority distro that isn't deb based, but there are certainly people here that know it well.
@Jez I for one would not support that. Your argument in the discussion about this site being for advanced users is partially true, but the version of debian that caters to non-advanced users is called Ubuntu and already has it's own SE site.
Which by the way I think is a constant pain because we both field a lot of each others questions.
The Ubuntu vs the rest of Unix & Linux rift is already quite a topic, and exceptional on the SE network as being the only pair of sites with massive topic overlap that have separate sites. I don't think they are up for another. You're welcome to try your proposal, but I can't say that I'll jump in to support it.
If you have anything to ask about Debian feel free try at least TRY the Unix&Linux community here. You might be surprised to find that we do our best to answer people at the level they appear to be at, from newbie to expert.
You have a right to disagree, but since you just joined U&L today it seems a little early to be making arguments about what would and wouldn't be on topic here or how well Debian questions get covered or that newbies can't get relevant help here.