Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Posts by mcp‭

21 posts
81%
+7 −0
Q&A How to get number of files in directory

How do you find out the number of files in a directory from the command line?

4 answers  ·  posted 2y ago by mcp‭  ·  last activity 11mo ago by AdminBee‭

Question bash zsh ls
81%
+7 −0
Q&A What partition type should be used for cross-platform FAT partitions?

Question What partition type should I use for FAT partitions such that Linux and Windows systems both recognize the drive? Notes I am partitioning the drive with fdisk and making the filesystem ...

1 answer  ·  posted 1y ago by mcp‭  ·  last activity 1y ago by Ullallulloo‭

77%
+5 −0
Q&A Copy to clipboard from terminal with Vim bindings

Question How do I copy to clipboard from terminal with yy, assuming it's configured to use Vim bindings? I am using zsh with bindkey -v. MWE Enter something on the commandline (without pressi...

2 answers  ·  posted 1y ago by mcp‭  ·  last activity 8mo ago by Mithical‭

75%
+4 −0
Q&A Documentation for double asterisk glob expansion

Where can I find documentation on double asterisk in glob expansion? It is discussed in the .gitignore section of Pro Git. It works in ls **/* to list all terminal files. It is supported by py...

2 answers  ·  posted 8mo ago by mcp‭  ·  last activity 8mo ago by Kamil Maciorowski‭

Question bash glob
75%
+4 −0
Q&A How to convert PDF to docx

How can I convert PDF to docx using the terminal or a Linux app? The output docx must be formatted with editable text. Some alternative solutions I've seen online using soffice and abiword output...

2 answers  ·  posted 1y ago by mcp‭  ·  last activity 1y ago by samcarter‭

71%
+3 −0
Q&A Storage usage by media type

Question How can I view storage usage breakdown by media type? MWE Notes Commandline would be great, but open to anything.

0 answers  ·  posted 1y ago by mcp‭  ·  last activity 11mo ago by matthewsnyder‭

Question disk-usage
71%
+3 −0
Q&A How to persist keyboard repeat rate and delay for external devices

Problem I want to set a global keyboard rate for both the X session and the console that persists for external keyboards, across plug-ins and removals. To my understanding, Xorg and console sett...

0 answers  ·  posted 1y ago by mcp‭  ·  edited 1y ago by Quasímodo‭

Question console x11 keyboard
71%
+3 −0
Q&A Treat underscores as word boundaries in terminal using vim mode

Question How do you specify underscores as Vim word boundaries when using vim mode in either bash or zsh? MWE w on this_word should place the cursor on the underscore. A second w should place th...

1 answer  ·  posted 1y ago by mcp‭  ·  last activity 8mo ago by r~~‭

Question bash zsh vim
66%
+2 −0
Q&A How to make vi-mode bindings in terminal copy to clipboard

If I want to yank my last command I can UP yy, but this does not copy to the system clipboard. How do I configure my terminal to copy to the system clipboard so I can paste into other programs? ...

1 answer  ·  posted 2y ago by mcp‭  ·  last activity 2y ago by deleted user

Question bash zsh vi-mode
66%
+2 −0
Q&A How to append commands to startx from console

MWE startx && xrandr-invert-colors Problem It seems that anything after startx does not get issued in the resulting X session. I'd like to make a bash function that sets up my monito...

2 answers  ·  posted 1y ago by mcp‭  ·  last activity 1y ago by celtschk‭

66%
+2 −0
Q&A How to decrease image size from commandline

Problem I'd like to be able to decrease images, particularly jpg and png's, either to a percentage of the original file, or a specified size in bytes. MWE decrease --size=900KB -o image_small....

1 answer  ·  posted 1y ago by mcp‭  ·  edited 1y ago by mcp‭

62%
+3 −1
Q&A How to edit file from less

MWE touch d less d # jump to editing d without leaving less Question Is there a way to edit a file from viewing it in less? Jumping straight into Vim would be preferred, but an answer for e...

1 answer  ·  posted 2y ago by mcp‭  ·  last activity 2y ago by celtschk‭

Question less edit vim editor emacs
60%
+1 −0
Q&A How to find product and vendor names for xorg.conf

Problem How do I find product and vendor names for use with a xorg.conf file? Neither the xorg.conf nor the xinput manuals specify how to do this. xinput lists info, but the output lacks column ...

0 answers  ·  posted 3mo ago by mcp‭  ·  edited 3mo ago by mcp‭

60%
+1 −0
Q&A How to prevent keyboard layout modifications from affecting external keyboards

Using For the console: /etc/vconsole.conf ---- KEYMAP=dvorak For X Session: .xinitrc ---- setxkbmap -layout us -variant dvorak & Problem For the console, it applies the dvorak lay...

0 answers  ·  posted 6mo ago by mcp‭  ·  edited 6mo ago by mcp‭

60%
+1 −0
Q&A Simplest way to change cursor to indicate vim mode

Question What is the simplest way to change the cursor to indicate vim mode when using zsh? Notes I want it to show as a vertical line in insert mode and a block in normal mode. This is the cur...

1 answer  ·  posted 1y ago by mcp‭  ·  last activity 1y ago by GoldenGold‭

Question zsh vim terminal cursor
60%
+1 −0
Q&A Vim key bindings not working in terminal python interpreter

MWE To reproduce: Add bindkey -v to your ~/.zshrc. Invoke python interpreter: python. Type something into the prompt without hitting ENTER: this = "this" + "that". Press ESC and try any vim ...

1 answer  ·  posted 1y ago by mcp‭  ·  edited 7mo ago by mcp‭

Question zsh python
60%
+1 −0
Q&A How to reduce DPI of external monitor using xrandr

Have I have the DPI on my laptop set in .Xresources with Xft.dpi: 192. I am outputting to the external monitor with: xrandr --output HDMI-2 --auto --rotate left --right-of eDP-1 Want I want ...

0 answers  ·  posted 1y ago by mcp‭  ·  last activity 8mo ago by Mithical‭

60%
+1 −0
Q&A xrandr rotate not filling external monitor

This was fixed after restart. I believe this was caused by updating without restarting. It's possible it also had to do with disconnecting the HDMI cable.

posted 1y ago by mcp‭

Answer
60%
+1 −0
Q&A xrandr rotate not filling external monitor

Problem I can rotate output, but it does not fill screen. Instead it rotates in place so that the right side of the screen goes off the monitor. xrandr --output HDMI-2 --auto --mode 1920x1080 --...

1 answer  ·  posted 1y ago by mcp‭  ·  last activity 1y ago by mcp‭

60%
+1 −0
Q&A Running `bashcompinit` in zsh to enable use of bash completion specifications gives "command not found"

I'd like to use the answers in this post while using zsh: compgen -c # will list all the commands you could run. compgen -a # will list all the aliases you could run. compgen -b # will list a...

0 answers  ·  posted 1y ago by mcp‭  ·  edited 1y ago by Canina‭

Question zsh
50%
+0 −0
Q&A How to list the first x files in each directory

MWE With the following tree: l1 └── l2 ├── d0 │   ├── f0 │   ├── f1 │   ├── f2 │   ├── f3 │   ├── f4 │   └── f5 ├── d1 │   ├── f0 │   ├── f1 ...

3 answers  ·  posted 7mo ago by mcp‭  ·  last activity 7mo ago by matthewsnyder‭

Question bash zsh ls find cp