Skip to content

Tag: linux

Swift – Can’t import packages

I have been trying out Swift on Ubuntu 20.10 and am having trouble importing packages. Swift is installed properly. I am always getting error: no such module, no matter which package I try. Here is my Package.swift (Embassy as an example): main.swift(under Sources/test) Answer In your Package.swift file you a…

Escaping Backslashes and Double Quotes in zsh Alias

I am trying to create an alias that should turn into the following command: It’s straightforward to just do on bash, but on zsh, the command turns into I can’t get the ” or the to escape. Answer It looks like you’re treating the first and last double-quotes as ‘surrounding&#8217…

Sudoers.d file is not picking up in SLES SP5

I was working with some Linux service file and in one scenario I need to invoke systemctl command as a different user say sar user. So I have wrote one sudoers file(/etc/sudoers.d) and added the following code and I am invoking the command using sudo prefix its working for the most of the Linux version but in…

unzip a list of archives

I need to Unzipped a list of zip archives. These archives are not empty, in each one there are a lot of file. In my directory I have a lot of file zip archive and all have the the name in the same format: batch-download-ccd-1610959358275.zip but change only the numeric part. I can extract each archive with un…