A command-line interface (or CLI) is a method of interacting with your OS or software by typing commands on your keyboard.

learn more… | top users | synonyms (5)

1
vote
0answers
22 views

File shows different size after copying to another directory

I used cp -rP <dir name> <new dir name> to copy the contents of a directory, including permissions etc from one dir to another. The odd thing is, either du is giving me some strange ...
1
vote
1answer
15 views

ZSH Quote escaping and expansion

I am trying to run tmux, passing several commands at once, and I'm unable to properly quote the string. The command succeeds when manually entered on the command line: ~% /usr/local/bin/tmux ...
-2
votes
0answers
16 views

Windows 7 CMD full screen replacement

Is there any replacement/ or any software to make Windows 7 cmd full screen? Thanks.
0
votes
1answer
15 views

How to make exiftool not to change file's date and time

How to make exiftool not to change the date and time of the affected files? I mean not the date and time written in EXIF, I mean the date and time of the file itself.
0
votes
0answers
11 views

How to enable “allow Guest Account to log in to this computer” option on Mac OS X Mountain Lion via command line?

How to enable "Allow Guests to log in to this computer" option on Mac OS X Mountain Lion via command line ?
0
votes
0answers
10 views

ImageMagick Script Error: ': No such file or directory @ error/blob.c/OpenBlob/2644

I am trying to run the following script in terminal: mogrify -resize 900x10000 *.JPG mogrify -resize 900x10000 *.jpg for f in *.JPG do echo "<tr><td><img ...
0
votes
1answer
23 views

How to switch to application, or create new instance if there isn't one?

I want to have keyboard shortcuts for opening firefox, nautilus, etc. The problem is that this will always open a new window, instead of using the existing one when there is one. So what can I do ...
2
votes
1answer
37 views

How can I open an application using the command line and then close the terminal without closing the opened application?

If I open an application from the command line, say Firefox, the application runs as long as the terminal stays open. Closing the terminal's tab will close the application. Is there a way to open an ...
1
vote
1answer
26 views

File last changed time earlier than it was last opened

Why is the file last changed time dated earlier than time shown by the previous date command? $ date Fri May 17 13:41:11 MDT 2013 $ touch other.rst $ ll other.rst -rw-r--r-- 1 ondrej cnls 59261 May ...
3
votes
1answer
37 views

How to find a file and move it into the directory it was found in

I am trying to rename files in sub directories using xargs by running the following command: find . -name oldfile.txt -print0 | xargs -n 1 -0 -I % mv % newfile.txt The problem is that the file gets ...
0
votes
1answer
18 views

Is it possible to recursively list zip file contents with 7 zip without extracting

Similar to this question I have a very large zip file which contains other zip files, folders, and files. I want to use 7-zip to extract a list of file names from it, recursing into subfolders and zip ...
54
votes
5answers
2k views

How do perform commands in another folder, without repeating the folder path?

I was wondering if there's any clever way to do copy and move operations, or if there's a command to duplicate a file, without having to do a cd, then mv after, at the same folder. For example, I ...
1
vote
1answer
38 views

netcat output into separate files using string delimters

I want netcat to pipe the output of a tcp/ip connection to commands that examine the output and split it into distinct files separated by the strings "msg" and "/msg" from the output, something like ...
-1
votes
0answers
13 views

How would I FTP from command line with multiple connections? [closed]

Windows Server 2008 R2 64 I am looking to transfer large numbers (~15,000/day) of medium size files (~5-10MB) in different directories automatically over FTP from the command line. These files are ...
1
vote
1answer
32 views

How do I install 'z' file directory jumper on linux?

I'm attempting to install this and running into issues. I am supposed to add a line to the ".bashrc" file? Where in the file? the bottom? the top? somewhere in the if statement? do I make it an alias? ...
0
votes
0answers
8 views

Outlook AutoArchive through command prompt

I am trying to find a way to run the outlook auto archive on the last day of every month rather than 14 or N days time frame. So, I thought to create a windows scheduler to do this job, but I didnt ...
0
votes
2answers
42 views

If statements causing batch file to crash?

I am having trouble using IF statements in a batch file. I have it set up with a set /p but when the code gets to the IF statement it closes. This file outlines what I mean: @echo off set res1=word ...
2
votes
1answer
41 views

Human readable text for current weather condition

I am looking for a command line program that takes the current weather condition from a website and prints it out in a human readable format. Actually, I have a Linux box which is connected to my TV ...
0
votes
1answer
25 views

Add a window padding to guake

Text is too near the edge of the screen, I'd like to allow a small 10 pixel padding on all sides to comfort my eyes. Is this possible? I'm using guake.
3
votes
2answers
52 views

How to start a de-elevated cmd from admin command prompt

I have an administrator command prompt. I'd like to load another command prompt from here without administrator priveledges. I'm pretty sure its some usage of 'runas' but I can't find the ...
0
votes
1answer
33 views

Condensing into multiple pdf pages per sheet, via command line

Let us say I want slides.pdf to contain 4 slides per page instead of one. I can easily open a slides.pdf document under evince (the default Ubuntu document viewer) evince slides.pdf-->Print-->Page ...
0
votes
0answers
15 views

Condensing into multiple pdf pages per sheet, via command line [duplicate]

Let us say I want slides.pdf to contain 4 slides per page. I can easily open a slides.pdf document under evince (the default Ubuntu document viewer) evince slides.pdf-->Print-->Page Setup--> Pages ...
-2
votes
0answers
34 views

In what circumstances is it better to use a simple text editor than an IDE, when programming? [closed]

At work and at school there seems to be a movement where people prefer plain text editors to IDEs. By simple text editors I mean things such as Notepad, VI, or Emacs. Is there any benefit or ...
0
votes
1answer
25 views

dseditgroup not returning error but not removing user from group

I am following instructions written by someone else to harden an OS X box. One requirement is to made sure certain system-defined groups have no users in them. For this example I will use _ard, but ...
1
vote
1answer
53 views

Write file permissions for root user

I have a file called myfile that I would like to move using: sudo mv myfile deep-dark-directory/ I need to use sudo to move the file as deep-dark-directory needs root privileges to write and I ...
1
vote
2answers
52 views

Documentation on “BSD General Commands”

I cringe to ask this question, but for many commands on OS-X and probably other POSIX systems, it's difficult for me to find needed documentation on the built-in commands. For example, if I want to ...
0
votes
0answers
22 views

Why ICS cmd window pops up?

Every time I start my PC, this Internet Connection Sharing cmd window pops up. Some commands are displayed and then it stops. And then I need to close it. What's the problem? I never encountered this ...
1
vote
1answer
55 views

Batch script to rename folders from a list

I am trying to write a batch script that will rename folders that are defined in a list.txt file. FOR /F %%a IN (C:\SCRIPTS\list.txt) DO RENAME "%%a" "%%a_delete" && EVENTCREATE /T ...
0
votes
1answer
26 views

How to export a specific registry key to a text file using command line

How can I export specific value from the registry to a text file using the command line? For example, I want to export Hkey_local_Machine\Software\mcafee to a text file in C:. I just need the key – ...
2
votes
2answers
34 views

Windows 8 stop or start services from the command line

I have a touch screen Windows 8 laptop, which has a touch screen keyboard that constantly shows up when I am working in metro apps. Is there a way to stop a service (specifically "Touch screen ...
0
votes
2answers
20 views

How to use shortcut “start in” option in windows, using command prompt

I have an executable. I want to start that program in a different folder, rather than starting it in my current folder. Shortcut does have an option where you can specify where you want to start the ...
0
votes
2answers
34 views

Is it possible to turn on/off numberlock with command prompt?

With command prompt, can I turn my number lock on or off? I'm hoping to do it with just one line, but I'm assuming I can't as that would have shown up in google.
0
votes
2answers
49 views

How to retrieve video file informations from command line under Linux

I'd like to see from command line all informations pertaining to a given video file, including lenght, quality, bitrate, resolution, audio and video formats, number and language of audio streams and ...
0
votes
1answer
16 views

Writing a tcsh script to copy files specified in first argument to a specific directory

I'm trying to write a script in tcsh that will copy select files that I specify at the command line from one directory to another without having to write out the entire path of each file. Also, to ...
0
votes
2answers
45 views

How do I reconnect an already mapped network drive from command prompt [duplicate]

I have a network drive already mapped. But I want to create a batch file that starts after the startup is complete and reconnect to the mapped network drives. So far I have seen commands net use Z: ...
3
votes
2answers
32 views

Append line break to command output

I have a single-line command that does a curl request to check server status and then output the result to a log file. But the problem is the returned result has no line break and so the log file ...
1
vote
3answers
77 views

Rename recursively files, while keeping the extension

I have a bunch of directories that each hold one *.txt file in it (and other non *.txt files). I'd like to rename those files recursively from the command line, basically *.txt to info.txt. So all ...
1
vote
1answer
26 views

Only complete command names if no file name completions exist

Reasoning: I have autocd enabled, yet I never use it because it makes tab-completion a huge pain, as every single command name on my system will be completed along with the filename completions. ...
0
votes
5answers
63 views

Automatically extracting text files via commandline and combining them into a single text file

In-Depth Explanation of Problem: I'm trying to automate a process on my computer and having some difficulty. Each day, I'm emailed a zip file that contains a txt file. I have a script in place that ...
4
votes
1answer
47 views

Bad sectors in external HDD

I've had this external HDD for around 3 years give or take 6 months. For the last month or so, it was pretty slow but it worked. A few files couldn't be copied onto my system but files could be ...
0
votes
1answer
21 views

Clean up my gnupg keyring?

My gnupg keyring contains hundreds of unnecessary entries. How would I remove the expired, revoked and unsigned keys from it? I would like to keep the keys that have signed my key, and import new ...
3
votes
1answer
49 views

Using grep to remove lines from a file which contain a string from another file

I have a file containing words (one per line) such as Dog Fish Cat Shoes I have a secondary file in CSV format such as 1,shoes,red 2,apple,black 3,fog,blue I would like to use grep with ...
2
votes
2answers
22 views

Place contents of last command line output into clipboard

I want to be able to run a command in my Terminal, and then quickly be able to copy the contents of the output into my clipboard without leaving my keyboard. Is there any way to do this?
0
votes
2answers
39 views

Creating folder alias like %SystemRoot% in windows 7

I'm trying to create a shortened path to a directory that is nested in a lot of directories (ie C:\Users.......................................\TestApp\Data\32\TutorialData which is 80+ characters to ...
3
votes
2answers
71 views

How can I navigate in command prompt to a remote folder which has been shared among users? [duplicate]

So basically I want to go to 192.xxx.xxx.xxx\myFolder to see the files in it. I go with Explorer and it works fine, I can even delete and/or modify and add files to it. The problem is that I'm ...
2
votes
2answers
67 views

Why won't my Windows 8 Command line update its path

I needed to add a new entry to my PATH variable. This is a common activity for me in my job, but I've recently started using Windows 8. I assumed the process would be similar to Windows 7, Vista, ...
0
votes
0answers
31 views

is there a way to run exe file automatically in the tray [duplicate]

I do not like that some of my apps which are running in background constantly are wasting space in my taskbar. I would like to move them to a tray. Is there a way to run the exe file in the tray? I ...
0
votes
4answers
48 views

Extracting specific line of text with grep for use in conky

I'm trying to extract the directory of the current playing song in Quodlibet for use in attempting to display album artwork in conky. In QL's current file ~/.quodlibet/current there is a line that ...
2
votes
1answer
31 views

emacs: “click” on “links” in command line emacs

In some emacs documentation there are underlined texts that resemble links. For instance, by M-x list-packages we get the following: In some GUI version of Emacs like Emacs For Mac OS X (but not ...
0
votes
2answers
58 views

Run series of commands in different tabs in conemu

I have a .bat file which used to open 3 cmd windows each a different colour. I am now using conemu and would like to now do the same but in different tabs. How do I do that? My .bat file: cd /D ...

1 2 3 4 5 77