ychaouche
  • Member for 9 years, 5 months
  • Last seen more than a week ago
Bind MetaL in icewm
Accepted answer
3 votes

Well, the key's name is "Super". key "Super+k" konsole key "Super+f" firefox key "Super+e" emacs -fg white -bg black -cr honeydew2 key "Super+g" gimp key "Super+l" ...

View answer
How to properly use mmv and avoid "no match"
2 votes

mmv refuses to rename folders unless you specify the -r option, which worked in my case with same syntax as above : mmv -r "*v*" "#2"

View answer
Files with empty names
2 votes

EDIT : WRONG WRONG WRONG. In my case the filename wasn't empty, it consisted of non printable characters. See : How do you create a file with an empty name? Old answer You should. I don't know how, ...

View answer
What linux is best suited for people new to computers?
2 votes

I share imz's view that what's more difficult for newcomers to the computers world is the Desktop. In that optic, I like KDE's "search and launch" desktop mode, see http://ychaouche.wikispot.org/...

View answer
How do I delete all mail coming from a specific domain in a specific user's inbox?
1 votes

Here's how I'd do : cd to the user's mailbox cd /var/vmail/domain.tld/user/ Look visually for all the mail coming from qq.com grep --color=always "^From:.*qq.com" -r . Adjust the grep filter if ...

View answer
What's a smart way to count the number of days since X?
1 votes

I tried python on the command line. $ python -c "import datetime; print datetime.date.today() - datetime.date(2014,11,17)" 246 days, 0:00:00

View answer
How do I access a network printer from a windows printing server?
Accepted answer
1 votes

Add the LPD service to the printing role on windows server. On linux, open your system configuration tool then add a network printer, choose the LPD/LPR Host or printer and then type the name or ip ...

View answer
How do I display the nth result of an ls command?
1 votes

With tail and head (added nl for clarity). Let's fetch the fifth line : ychaouche@ychaouche-PC ~ $ ls | nl 1 total 8.3M 2 -rw-r--r-- 1 ychaouche ychaouche 20K Jul 8 15:53 2.docx ...

View answer
Using grep vs awk
0 votes

Use awk whenever you find yourself piping greps and seds and sorts and uniqs and the like. So instead of grep <...> | sed <...> | sort <...> | cut <...> | head <...> you ...

View answer
How can I get distribution name and version number in a simple shell script?
0 votes

Some distros use *-issue files, some use *-version, some use *-release, or any combination of those 3 variations. Dirty and dirty way : [root@radio ~]# for file in /etc/{*issue*,*version*,*release*}; ...

View answer
How do you change the netmask?
0 votes

A NIC can have more than one address, so the netmask can only be set when setting the IP address. the ifconfig command equivalent only works because it assumes NICs have only one address. There is no ...

View answer
copy a directory into another directory and create intermediate directories
0 votes

rsync -a --relative did the trick. rsync -a --relative /usr/share/zoneinfo/ /var/www/clients/client1/web5/ Credit goes to unix_ninja on this tweet

View answer
How to switch pane in Dolphin using keyboard?
0 votes

Konqueror is quite close to dolphin in terms of user experience. You could run konqueror, go to settings > Load View Profile > Midnight commander. It will automatically split in half, you can use tab /...

View answer
Get colors in less command with ccze: Shift + g doesn't go to the end of file?
0 votes

Both Meta-> and Meta-< work perfectly fine for me. I'm used to them because they do the same in emacs

View answer