Newest questions tagged command-line - Super User

most recent 30 from superuser.com

Latest articles

Unix: Why soft link file still pointing to original file when original file is deleted?

I have Windows 7 64-bit PC. I have installed Cygwin version 2.6.0 on it in c:\cygwin64 directory. I have a file named file1. For it I created a soft link file named file1_soft1. ls -i -l command gives me this output: total 2 3377699721198685 -rw-r--r-- 1 cChappati Domain Users 57 Jan 20 19:47 file1 37154696926542763 lrwxrwxrwx...

Is there a way to format and eject multiple external drives through command line ( windows)?

I'm in the process of formatting hundreds of micro sd cards and I am looking for an easy way to format and eject them in bulk. I have 9 sd card slots and can add more if needed. Currently I am using SDFormatter but it only allows one at a time formatting and doesn't eject the disks. Is there a script that will let me do this faster?

PHP works on command line but not in browser

When I run a basic 'hello world' php script from the command line, running the command php test.php, it returns a valid html page. However, when I try to access it by a browser, I get the text of the php script returned, rather than valid html. The php script "test.php" is as follows: <html> <head> <title>PHP Test</title>...

Recursively run all files of specific extension through the command line

I want to run all .sfv files recursively starting in a particular directory. I have come up with the below so far. for /r "c:\mydir\" %x in (*.sfv) do start "%x" This code works; however, I need it to run each file in every 5 minutes upon execution?

How to recursively copy files using Windows command line

I'd like to avoid using a batch file, if possible. Based on this answer to a question about recursive renaming or moving, I've came up with the following command (for copying all files named web.foo.config to web.config in the same directory): for /r %x in (*web.foo.config) do copy /y "%x" web.config However, that just caused every instance...

Bash if on single line

I would like to know how can I write if conditions inside a bash script on a single line. For example, how can I write this on a single line, and then put another one just like it on the next? if [ -f "/usr/bin/wine" ]; then export WINEARCH=win32 fi I ask this because I have quite a few aliases in my .bashrc and I have the same .bashrc...

Comparing .wav file samples from command line

As a part of our project we should classify sound samples (stored as .wav files). All sample is the same, just pure speach (like a Skype test call). The process is the following: a reference wav, this is the "high quality" sample comparing approx. 1000 wav files calculating divergence from the reference wav one by one Is there any cli tool...

groupadd command not found in Cygwin

I have Windows 7 64-bit PC. I have installed Cygwin version 2.6.0 on it in c:\cygwin64 directory. There was no /etc/passwd file. So I create that file by using mkpasswd -l > /etc/passwd command. There was no /etc/group file. So I created that file by using mkgroup -l > /etc/group command. Now I want to add a group using groupadd command....

YUM Commands getting critical error in Linux Redhat

Every time I run the yum command in Linux Redhat I get this error message: CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum.conf I don't have any files regarding yum in my /etc directory. But I still seem to have yum installed since I get this message when I run "rpm -qi yum": Name : yum ...

FFMPEG equalizer: Decreasing volume and increasing low frequencies not working

Good evening everyone, I'm pretty new to superuser (as a developer I mostly spend my time on stackoverflow) but I thought my question fits better here: I am trying to decrease the overall volume of my video and increase low frequencies (40-100Hz) in FFMPEG. Here is my approach: ffmpeg -i input.mp4 -af "volume=-5,equalizer=f=70:width_type=h:width=60:g=5"...

Discover, share and read the best on the web

Subscribe to RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters! Get unfiltered news feeds or filter them to your liking.

Get Inoreader
Inoreader - Subscribe to RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters!