<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Command Line on Michael’s Domain</title><link>https://jeltsch.org/en/tags/command-line/</link><description>Recent content in Command Line on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/command-line/index.xml" rel="self" type="application/rss+xml"/><item><title>Taking an webcam image from the command line</title><link>https://jeltsch.org/en/taking_an_webcam_image_from_the_command_line/</link><pubDate>Fri, 05 Apr 2024 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/taking_an_webcam_image_from_the_command_line/</guid><description>&lt;p&gt;There are probably not many use cases, but remote surveillance is an example, both in a malicious and legitimate context. Malware can take pictures of the unwitting user, and &amp;ldquo;Has anybody searched through my office after I forgot to close the door last Friday?&amp;rdquo;, respectively.&lt;/p&gt;</description></item><item><title>Deleting files with "illegal characters"</title><link>https://jeltsch.org/en/deleting_files_with_illegal_characters/</link><pubDate>Fri, 08 Sep 2017 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/deleting_files_with_illegal_characters/</guid><description>&lt;p&gt;In the cross-platform environment of our university, at least three different OS connect to the smb shared group directories. Apparently Macs are able to save files with characters that are not allowed on other platforms and which cannot be easily deleted. Recently we had several files which ended with a &amp;lsquo;.&amp;rsquo; (dot) or a &amp;rsquo; &amp;rsquo; (space), and we were not able to remove them via the GUI. In Windows 7, I managed via the command line with:&lt;code&gt;delete &amp;quot;file.&amp;quot;&lt;/code&gt; or&lt;code&gt;delete &amp;quot;file &amp;quot;&lt;/code&gt;I have, however, not found a way to so from my Ubuntu machine and it is annoying to boot into Windows merely to delete some files. Unfortunately, this became necessary because the 
 &lt;a href="https://www.cloudberrylab.com" target="_blank" rel="noopener noreferrer nofollow"&gt;Cloudberry&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 backup system (which is running on Ubuntu) chokes on such files. I am looking into a new backup system for our lab&amp;rsquo;s computers since 
 &lt;a href="https://www.crashplan.com" target="_blank" rel="noopener noreferrer nofollow"&gt;CrashPlan&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 decided to discontinue support for non-business customers…&lt;/p&gt;</description></item><item><title>Batch renaming files on the command line</title><link>https://jeltsch.org/en/batch_renaming_files_on_the_command_line/</link><pubDate>Tue, 28 Jun 2016 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/batch_renaming_files_on_the_command_line/</guid><description>&lt;p&gt;The default command line application for batch renaming files in Ubuntu 16.04 is called &amp;ldquo;rename&amp;rdquo;:&lt;code&gt;rename 's/tk98i_/wt_tk98_/' *.tif&lt;/code&gt;It uses Perl regular expressions with and the s/old/new/ syntax. The example above renames all files with the .tif extensions and replaces the &lt;strong&gt;th98i_&lt;/strong&gt; expression with &lt;strong&gt;wt_tk98_&lt;/strong&gt;.Here are some more examples: 
 &lt;a href="http://tips.webdesign10.com/how-to-bulk-rename-files-in-linux-in-the-terminal" target="_blank" rel="noopener noreferrer nofollow"&gt;http://tips.webdesign10.com/how-to-bulk-rename-files-in-linux-in-the-terminal&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
&lt;/p&gt;</description></item><item><title>Reset MacOSX user passwords</title><link>https://jeltsch.org/en/reset_macosx_user_passwords/</link><pubDate>Sun, 28 Apr 2013 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/reset_macosx_user_passwords/</guid><description>&lt;ul&gt;
&lt;li&gt;Boot up with command key and S key pressed (Single user mode)&lt;/li&gt;
&lt;li&gt;fsck -fy&lt;/li&gt;
&lt;li&gt;mount -uw /&lt;/li&gt;
&lt;li&gt;password username&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Burning CDs from the command line: cdrdao</title><link>https://jeltsch.org/en/burning_cds_from_the_command_line_cdrdao/</link><pubDate>Wed, 23 May 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/burning_cds_from_the_command_line_cdrdao/</guid><description>&lt;p&gt;K3b seems to be the best GUI for burning CDs on Linux. But today it failed to burn an image file (bin/cue) and I don&amp;rsquo;t know why. So I used:&lt;code&gt;cdrdao write --device /dev/cdrecorder --speed 8 filename.cue&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Editing (resizing, format converting, compressing) images in the command line with ImageMagick (mogrify, convert)</title><link>https://jeltsch.org/en/editing_resizing_format_converting_compressing_images_in_the_command_line_with_imagemagick_mogrify_convert/</link><pubDate>Wed, 23 May 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/editing_resizing_format_converting_compressing_images_in_the_command_line_with_imagemagick_mogrify_convert/</guid><description>&lt;p&gt;Resize all tif images in the current directory:&lt;code&gt;mogrify -resize 25% 25% *.tif&lt;/code&gt;Resize all jpeg images in the current directory to a width of 614 pixels and keep the image ratio constant:&lt;code&gt;mogrify -resize 614 *.jpg&lt;/code&gt;As above, but resize the hight to 614 pixels:&lt;code&gt;mogrify -resize x614 *.jpg&lt;/code&gt;Convert all bmp imgaes in the current directory into tiff images:&lt;code&gt;mogrify -format tiff *.bmp&lt;/code&gt;Compress all tiff images in the current directory with ZIP compression:&lt;code&gt;mogrify -compress ZIP *.tiff&lt;/code&gt;I tried to convert also pict files (from Macintosh), but without success, although the pict file format appears to be supported by Imagemagick. In order to make sure that ImageMagick knows that the file to convert is a pict file I used this command:&lt;code&gt;convert pict:Photo0024.PICT tiff:Photo0002.tif&lt;/code&gt;There is also a picttoppm utility in the netpbm package, but it was not anymore included in the version that Suse 9 uses; so I couldn&amp;rsquo;t check that out…Interestingly PixiePlus can display pict files, where does it take the routines from?If you have very large images, the default limits of ImageMagick are resulting in an error(e.g. mogrify-im6.q16: width or height exceeds limit) and you need to edit /etc/ImageMagick-6/policy.xml!&lt;/p&gt;</description></item><item><title>Command line rpm and SuSEconfig</title><link>https://jeltsch.org/en/command_line_rpm_and_suseconfig/</link><pubDate>Tue, 06 Mar 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/command_line_rpm_and_suseconfig/</guid><description>&lt;p&gt;After you run the rpm command from the command line, you always should run the SuSE config command in order to update the SuSE configuration files.&lt;/p&gt;</description></item></channel></rss>