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
19
votes
11 answers

How does one find which files are taking up 80% of the space on a Linux webserver?

The drive is constantly filling up. You've hunted down all the spare and random files you can. grep'd for coredump files and even removed some of the un-needed backups... What would be your next move. The actual server in question has 10GB of…
Gareth
  • 8,573
  • 13
  • 44
  • 44
19
votes
2 answers

What is the difference between sudo -i and sudo su -

What is the difference between commands sudo -i and sudo su -? Are they the same?
Howard
  • 2,135
  • 13
  • 48
  • 72
19
votes
6 answers

tool for splitting pcap files by TCP connection?

Is there tool to split a packet capture file (in pcap format) into separate files for each TCP connection ? (other than a home grown shell script which probably needs to run twice over the capture...). Something like wireshark's 'follow TCP stream'…
Andre Holzner
  • 529
  • 2
  • 4
  • 14
19
votes
4 answers

Absolute path with ls?

How can I make the ls command show a file's full path instead of just its filename? With all its options, there must be a way, right?
An̲̳̳drew
  • 1,265
  • 2
  • 14
  • 19
19
votes
5 answers

Using bash, how can i find out the average, max and min from a list of numbers?

I have a series piped greps, awks and seds which produce a list of numbers, one on each line. Something like this: 1.13 3.59 1.23 How can i pipe this to something which will output the average, max, and min?
JavaRocky
  • 481
  • 2
  • 4
  • 15
19
votes
3 answers

how do I get curl to save a file to a specified directory?

I'm trying to get curl, using a script, to download a file and save it to a certain directory. I got it to download but I dont know how to get it to a certain directory from a script. It usually just saves it to the current working directory.
joe schmoe
18
votes
3 answers

Change user password on other domain command line

I'd like to change user's password using cmd.exe on domain account. I tried net user user_name * /domain but it doesn't work, because my user is on another domain. How can I specify, to which domain user belongs?
Fka
  • 340
  • 2
  • 3
  • 10
18
votes
7 answers

How to cp file and create directory if not exists?

I want to copy modified files in a svn repository to another directory, while keep their directory structure. After reading awk and xargs manpage I find a way to get changed filenames like this: $ svn status -q | awk '{ print $2 }' | xargs -d \\n…
ZelluX
  • 415
  • 1
  • 5
  • 11
18
votes
2 answers

How to tarball a directory without carrying over /path/to/folder?

Example command: $ tar -cvjf destination.tar.bz2 /path/to/folder/source I'd like the final destination.tar.bz2, when extracted, to not include a /path/to/folder/ file directory. It seems inefficient to extract the tarball and then mv the contents of…
bottles
  • 389
  • 1
  • 2
  • 11
18
votes
2 answers

Display complete command line (including arguments) for Windows process

I want to display a process's command line (including any arguments) from the command line itself. In other words, I want to show the "Command Line" column in the Task Manager but from a command line. Is this possible? For example, the output might…
user35042
  • 2,681
  • 12
  • 34
  • 60
18
votes
8 answers

Find files in one directory not in another

Are there any Linux/Unix tools which find all the files in one directory not present in another? Basically I'm looking for diff which works on the output of ls. Short and sweet scripts are also appreciated.
Willi Ballenthin
  • 365
  • 1
  • 2
  • 11
17
votes
12 answers

What *nix based command can I use to find my external IP?

Similar to a http://whatismyip.com lookup. It would obviously need to query a computer out there. Just wondering if anyone had a clever way to do it?
Gareth
  • 8,573
  • 13
  • 44
  • 44
17
votes
3 answers

Why does Windows command prompt stalls until a key is pressed when executing long batch files or programs

I've just had two occurrences of windows 7 stalling an execution until I hit enter on the command prompt/powershell. Afterward execution seems to continue as expected. First was an batch file of copy commands like copy //host/file2010-1*xml…
KCD
  • 958
  • 3
  • 12
  • 24
17
votes
3 answers

Store output of Windows command in batch file

I need to store the output of a command line in a variable. How can I do this?
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
17
votes
6 answers

How to jump to a specific heading in a man page?

I've set a filetype in vim for this. I want the help program to be man. Of course this does not work. For instance, with ssh_config's manpage, if I am on a word, say ServerAliveCountMax, I get an error, since there is no man pager for…
chiggsy
  • 1,586
  • 1
  • 15
  • 20