Adding one variable into multiple parts of an alias?

alias moveit='mkdir $  1 && find -name "*$  1*" -type f -exec mv -t ~/$  1 {} +' 

I’m not quite sure what I’m doing wrong. Any help would be much appreciated.

I’m trying to make an alias where typing: moveit pdf

1: creates a directory called “pdf” in the current working directory

2: searches for all the files that contain “pdf” in the name within the working directory and subdirectories

3: moves those found files into the new folder called “pdf”

I know “pdf” will return other files that aren’t pdfs. I’m essentially trying to create an automatic sorting script.

I have files called:










And I want to sort these into folders pdf txt rtf all in one script, or at least one at a time for now.

Thank you!

How much can a grappler with reach move a grappled creature inside its reach?

This is a follow up from this question

A creature with a 15′ reach is grappling a creature with a 5′ reach. My question in this situation is: how much can the grappled creature be moved if it remains within the grappling creature’s 15′ reach? ie. can it be moved 30′ and what type of action is required for this movement?

hardware, mutlichannel sound, ardour 5, ubuntu studio 17.04

I would greatly appreciate some advice on hardware for relatively hi-fi multichannel audio on ubuntu studio

I’m running ubuntu studio 17.04 on a thinkpad w520. I use Ardour 5 to write electroacoustic music & would like to move from working in stereo to writing pieces for a 4 speaker (& eventually 8 speaker) home studio setup.

I’ve heard a lot of people recommending hdmi but my thinkpad has no hdmi port so it seems like an external usb soundcard is my best option.

here’s my soundcard information that i got from running this command in terminal: lspci -v | grep -i audio

00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04) Subsystem: Lenovo 6 Series/C200 Series Chipset Family High Definition Audio Controller

I’m posting here because I feel lost about which usb soundcard to get & also because I wanted to touch base to check if there are other better options than a usb soundcard for my current setup.

Thanks so much for your help!

Gparted can’t create partition table because flash drive is read-only

Overall, I want to make a live usb drive that installs Windows 10. Originally I did that with unetbootin which seemed to work fine. Then I tried booting from that USB-stick but nothing showed up in the boot menu. So I checked again with gparted and it says that the entire stick has no partitions:

Unallocated partition

I get this when trying to add a new partition:

No partition table found

And this when trying to create a new partition table:

Error 1

When pressing “Retry” I get this:

Error 2

I’ve found a solution online where I delete the first megabyte with mkusb of the stick but that didn’t change anything.

Did I brick my USB-stick or can I still save it?

Is it possible to obtain limitless HD?

I’ve been reading the ever-reliable D&D Wiki and there seem to be some disagreement on whether or not Pun-Pun can attain limitless HD. It doesn’t go in to much detail, but it’s got my interest. Is there any way to attain limitless HD?

Given that I’ve already put Pun-Pun on the table, it’s fair to say that anything short of third-party or homebrew contain will be allowed. An ideal answer will show that this is possible with either the level 1 Wizard variant of Pun-Pun or the Divine Minion 1/Wizard 1/Master of Many Forms 3 version that we all know and love.

new to Ubuntu and trying to remove programs getting an error

Authentication is required to remove software Incorrect permissions on /usr/lib/policykit-1/polkit-agent-helper-1 (needs to be setuid root)

Guys… I’m the new kid on the block and picked up this laptop with Ubuntu 18 on it. It works great, but has SW on it I don’t need and want to remove. When I try to remove the SW, I get the error message above. How do I correct this? Any and all help is greatly appreciated. Thanks Jackhammer

Windows 10 guest no SMT/Hyperthreading

KVM (Kernel Virtual Machine) Ubuntu 18.04 Ryzen 5 3600 Nvidia RTX 2070 Super

I am utilizing GPU passthrough, the purpose of this setup is to give me optimal performance in gaming, as well as maintaining the ability to have Ubuntu as my main platform. This will give me the ability to distro-hop and test out my skills on harder distros without nuking and paving.

The issue I have ran in to that I am having troubles with, is that my Windows 10 guest that I will be primarily using for gaming is not seeing any hyperthreading going on, I’m looking in to this because I’ve noticed frame rate drops as low as 50-70 fps than prior to virtualizing and big frame drops that almost appear as mini lag spikes, I know I will see performance loss but I want to do all that I can for maximum performance.

When I was utilizing the default container qemu, I was getting errors after changing settings in the xml file that said

qemu-system-x86_64: AMD CPU doesn't support hyperthreading. Please configure -smp options properly. 

This error went away when I updated to qemu 4.1.0, although in my windows guest I can confirm hyperthreading is not being seen by utilizing the commands

wmic  CPU GET NumberOfCores,NumberOfLogicalProcessors /Format:List 

Number of cores and logical processors match, indicating Windows sees all threads as real cores.

I found numerous articles I’ve been chasing online for the past couple days attempting to make something work, although I have not had any success.

I initially followed this guide

After that all my further edits have either been to resolve error code 43. and then cpu pinning mostly.

Any direction would be greatly helpful.

XML Config file will be attached here shortly

can a grapple be released by the grappler at any distance within it’s reach

I have a creature that has a 15′ reach. It’s attack can also grapple. Currently it’s grappling a creature with a 5′ reach.

I have several questions about this situation.

  1. Can the grappled creature always attack the creature that is grappling it, even if it’s held at 10′?
  2. Can the creature that’s grappling the other creature choose to let it go anywhere within it’s 15′ reach?
  3. Does releasing the creature allow for an oppertuniy attack if the creature being released has a reaction? Even if it’s released at 15′? (if this is possible)
  4. What sort of action is required for releasing a creature? A bonus action?