Questions tagged [command-line-interface]

A command-line interface (CLI) is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.

A command-line interface (CLI) is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.

1564 questions
23
votes
6 answers

How to check IPv6 address via command line?

How do I check the IPv6 address via command line? For IPv4 I simply use: curl ipinfo.io/ip This doesn't work for IPv6.
user3200534
  • 392
  • 1
  • 3
  • 10
22
votes
4 answers

How do you accept an SSL certificate through the SVN command line?

Is there an command line option to auto accept a SSL certificate permanently using the SVN commandline in a way that avoids the prompt?
James McMahon
  • 773
  • 2
  • 8
  • 16
22
votes
4 answers

Adding a random delay for a Linux command

I am using func to perform parallel commands on our servers. The other day, we had an issue when a service restart of puppet via func made all our severs hit our puppetmaster at the same time. My question: How can I execute the same exact command on…
Belmin Fernandez
  • 10,799
  • 27
  • 84
  • 148
22
votes
4 answers

VPN client connect/disconnect via command line in XP

In an XP Pro workstation, is there a way to start the native Windows VPN client and open/close a connection from the command line so it can be scripted in a batch file?
nedm
  • 5,630
  • 5
  • 32
  • 52
21
votes
6 answers

grep lines after match until the end

I have following output from git status, how do I grep for everything after Untracked files: [alexus@wcmisdlin02 Test]$ git status # On branch master # # Initial commit # # Changes to be committed: # (use "git rm --cached ..." to…
alexus
  • 13,112
  • 32
  • 117
  • 174
21
votes
10 answers

Suggestions for entries in a sysadmins .vimrc

At the very least I always uncomment "syntax on" in /etc/vim/vimrc
Gareth
  • 8,573
  • 13
  • 44
  • 44
21
votes
7 answers

command line - switch to administrator mode

Is it possible to switch from normal mode to administrator mode in command line? I don't want to open command line by right clicking and selecting "run as administrator". Thanks
culter
  • 507
  • 2
  • 9
  • 16
21
votes
4 answers

How to edit command completion for ssh on zsh?

I'd like to set up command completion on zsh to display host names after I type ssh [TAB] taking the names out of my .ssh/config file (and preferably from known_hosts and /etc/hosts and anywhere else that makes sense) and presenting one single…
iconoclast
  • 1,800
  • 2
  • 18
  • 30
20
votes
2 answers

Redirect to stdin instead of argument when using xargs

for exmaple, using the command cat foo.txt | xargs -I{} -n 1 -P 1 sh -c "echo {} | echo" The foo.txt contains two lines foo bar The above command print nothing.
Ryan
  • 5,831
  • 24
  • 72
  • 91
20
votes
5 answers

How to configure PHP CLI on linux ubuntu to run as www-data?

I have a symfony2 application on my ubuntu. Symfony has a plenty of useful console commands (like php app/console cache:clear or php app/console assets:install web). The problem is If I run them as root user the newly generated files will have…
20
votes
2 answers

Command to remove computer from non-existant domain

I lost my domain controller machine, and then add new domain controller but with a new domain. How do I remove network machines from old domain using command line and add to new domain? Machines using Windows Server 2008 Core (command line…
20
votes
11 answers

Command line active directory query email address for username

On Windows XP in an Active directory environment - what is the easiest way for me to query a user's email address from AD given their username on the command line. (Assuming I know where it is kept normally in tree). (I know about net user…
Hawkeye
  • 2,699
  • 9
  • 30
  • 35
20
votes
8 answers

How do I copy a directory tree but not the files in Linux?

I want to copy about 200 directories & subdirectories from one location to another but I don't want to copy the thousands of files within those directories. I am on Linux. Note: I don't have enough space to copy everything then delete all the files.
Kyle West
  • 636
  • 1
  • 6
  • 11
20
votes
2 answers

Display \n characters as newlines when using tail?

I have a file that I am trying to read by using tail -f. I was wondering if there was a way to have the terminal output an actual line break instead of the \n character.
GSto
  • 391
  • 1
  • 3
  • 8
19
votes
2 answers

How can I *include* folders through Dropbox's selective sync feature in Linux, from the command line?

After another user asked this question: Dropbox on linux server - how to include/exclude folders? My icon is still not working after performing some of the steps listed in other questions and…
Pysis
  • 293
  • 1
  • 2
  • 8