The command-line is the interactive interface to your shell.

learn more… | top users | synonyms (1)

3
votes
2answers
93 views

Are nautilus and command-line commands the same?

When I copy, move, or delete a file in Nautilus or using the corresponding commands (cp, mv, or rm) does the same tool perform the action behind the wraps? I ask because nautilus tends to hang on big ...
1
vote
1answer
75 views

What's the practical difference between `command` and $(command)? [duplicate]

Both give the output of the command, so what is the semantic difference between the two? Some reading led me to suspect is that $(command) is Bash syntax, and the back quotes are integrated into Unix ...
7
votes
3answers
303 views

what is meant by vi and emacs editing modes [duplicate]

What is meant by "Enabling command line editing and vi and emacs editing modes"? I know vi is an editor and have used it as well, but what and how is it related to command line editing bamboozles me. ...
1
vote
1answer
287 views

Linux empty buffer cache command permission denied

I'm using the following commands to flush cache: # sync; echo 3 > /proc/sys/vm/drop_caches # sync; echo 2 > /proc/sys/vm/drop_caches # sync; echo 1 > /proc/sys/vm/drop_caches When I use ...
2
votes
3answers
149 views

What command do I use to see the start and end block of a file in the file system?

Is there any command that will output the beginning and ending blocks of any file?
1
vote
3answers
539 views

Set homepage or start page from command line for Firefox or Chromium

On http://susestudio.com/, there's an option to enter custom command line scripts, and I want one to change the default homepage. Also, is there any way to set a browser full screen?
1
vote
1answer
101 views

Mount home partition on user login

I got a VPS with a user dedicated to store my files. As i am aware of the current situation with the NSA and many other governments, and my VPS is hosted on a doubtful country i would like to ensure ...
3
votes
1answer
119 views

How does the piping in this command ultimately achieve to kill the process?

I have seen the following line in a bash script for killing a process(in this case started with the command loadgen): ps xww | grep -i "loadgen" | grep "PATTERNMATCH_FACT.xml" | cut -c1-5 | xargs -i ...
0
votes
1answer
83 views

How to get sound intensity of an audio input through terminal?

I want to know the intensity of the sound being heard by an audio in source like a mic or Line-in through Command line. Kinda like the progressbar under the mouse but in CLI. audiointensity mic0 10 ...
0
votes
2answers
62 views

zsh: What does the command “time + number” do in zsh

When I type time + number in zsh: # atupal at local in /tmp/atupal/setup/bin [10:01:49] $ time 1 /tmp/atupal/setup/bin/lib/python2.7 # atupal at local in /tmp/atupal/setup/bin/lib/python2.7 ...
4
votes
4answers
149 views

How to show network adapters with their statistics?

Is there any terminal command I can use to display all the network adapters like eth0, wlanoand their data statistics like data transmitted & received?
2
votes
1answer
111 views

Cannot remove iwlwifi module, even though interface is down

When I run the following two commands, the first one returns without eror, but the second one gives me FATAL: Module iwlwifi is in use. sudo ifconfig wlan0 down sudo modprobe -r iwlwifi If bringing ...
5
votes
1answer
331 views

Wi-Fi with WEP from command line in Ubuntu 12.04, Kernel 3.8.0-29-generic

I have removed network-manager and am trying to configure Wi-Fi with WEP manually. I am running on an X1 Carbon. Here are the commands I am running: ifconfig wlan0 down iwconfig wlan0 essid ...
2
votes
1answer
259 views

How do I install Awesome Windows Manager in Terminal?

Right now I'm running on Kubuntu and I'd like to install Awesome Window Manager in terminal. I've used Xmonad but I'd like another window manager, but don't know how to install "Awesome" from the ...
4
votes
2answers
62 views

Using newline delimited list as parameter

There have been several situations where I have had some output such as thing1 thing2 thing3 But have wanted to do something like: *command* thing1 *command* thing2 *command* thing3 An example ...
1
vote
1answer
42 views

Get current output

This just crossed my mind. Let's say that I'm operating a remote machine via SSH and I executed a make command to, e.g. build a new kernel for my machine. While I'm logged in that session, I can see ...
-2
votes
1answer
80 views

how do I make a $VAR empty so it don't effect the command line argument and still be within that argument?

This is the basic setting for hsetroot for it to work: hsetroot -center /path/to/image/ - setting the wallpaper with just that the picture. To use these options, just one has to be place within the ...
0
votes
1answer
59 views

How do I see the contents of a drive in Debian command line?

I want to see what is on a drive so I can satisfy myself that it can be disconnected (unmounted?). This is a vm on ESXi with 3 datastores - first is the ESXi local storage, second is a nfs share on a ...
5
votes
1answer
53 views

how to input this command line

hume@linux-o1dm:~> gnomesu -u legum java -jar '/home/legum/frem/frem.jar' Unknown option -jar I want -u for gnomesu and -jar for java, but the openSUSE treat -u -jar only for gnomesu. What is ...
2
votes
1answer
93 views

Executing a remote command on SSH connection, before login

I am trying to find a way to execute a specific command when connecting to a server via SSH. By this I mean, the command will execute unconditionally on opening a connection, so this would preferably ...
-4
votes
1answer
49 views

Why is learning command line imporatant? [duplicate]

I googled this question many times but could not find a good reason why the knowledge of command line is important.Some say GUI cannot be used always but there are no examples supporting their ...
3
votes
3answers
165 views

How to move the first x files

I have this huge folder with thousands of unordered files. Is it feasible to move the first 5000s to a subfolder via the mv command? For now I move files with mv *some_pattern* ./subfolder1/ ...
1
vote
4answers
87 views

Symlink everywhere

Is there any way for me to symlink a particular file so that it appears in every directory on the system? So if I symlink /tmp/scratch No matter where I am I can type vi scratch?
1
vote
2answers
195 views

How to get rid of “Alarm clock” message in perl timeout?

[user@notebook ~] time perl -e 'alarm shift @ARGV; exec @ARGV' 1 sleep 2 Alarm clock real 0m1.004s user 0m0.004s sys 0m0.000s [user@notebook ~] My question: how can I get rid of that "Alarm ...
12
votes
3answers
1k views

How to stop a background process?

I have started a wget on remote machine in background using &. Suddenly it stops downloading. I want to stop its process, then start it again. How can I stop it? I haven't close its shell window. ...
1
vote
2answers
196 views

Running bash script gives `No such file or directory` when run with path [closed]

I have bash script aaa.sh that runs fine when I run it from the current directory. But if I try to run using the full path /home/vik/Projects/updd/aaa.sh, my system tells me No such file or directory. ...
1
vote
2answers
70 views

Removing “[crap-like-this]” from strings using bash parameter expansion?

If I have the following $STRING aaa.bbb.ccc.[ddd].eee.fff.[ggg].hhh is there any way, using bash parameter expansion, to echo the following aaa.bbb..ccc.eee.fff..hhh That is, remove all ...
-2
votes
3answers
473 views

How do I override rw-r--r— root/wheel for a all files in a directory?

I am trying to delete a directory on OS X. I do rm -r /path/dir but I keep getting many, many messages like this: override rw-r--r-- root/wheel for cron/migrate.php? I type y for one message, ...
1
vote
2answers
92 views

How is the loopback device traffic allowed?

How can I allow the traffic to be sent on the loopback device (lo)? What is the iptables command for it?
3
votes
2answers
72 views

keyboard shortcut to jump cursor to prompt?

I often mistype a command. So I will type this sublimetext myfile.txt instead of git add myfile.txt When I do this, I hit up to restore the last command. But after doing so, my cursor is at the ...
3
votes
0answers
117 views

What do I need to add a virtual IPsec adapter?

I'm trying to set up an IPsec connection manually from the console with iproute2. What I need is a virtual interface (at best, a virtual IP address could also be sufficient) that IPsec-transforms ...
0
votes
1answer
30 views

Is there any way to see the options for the next directory on a cd command?

When I cd to a/b/c, sometimes I want to see what are the children dirs of c. Normally, I would do it like this cd a/b/c ls child1 child2 cd child1 Is there any way to investigate the children ...
1
vote
1answer
493 views

How to install Mono v3+ in Ubuntu?

How can I install the latest release of Mono in Ubuntu Saucy? In order to develop in a free OS, I need to setup Mono (that now supports .NET 4.5). This is what I did: Download and uncompress ...
5
votes
6answers
280 views

Run a command without making me wait

On the CLI, sometimes a command I type takes a while to complete, and sometimes I know when that's about to happen. I'm a bit confused on "backgrounding" and such in Linux. What is the most common ...
3
votes
1answer
71 views

How to check corrupt and duplicated fonts on Linux?

I need to find software that can detect duplicate fonts out of a folder, and be able to tell if a font file is corrupted. Needs to be command line so I can script it for situations, although if you ...
0
votes
4answers
226 views

Opening Firefox from terminal [duplicate]

When I type firefox in terminal, it starts Firefox but the terminal "hangs". What is happening behind the scenes? Can I open Firefox from terminal and keep on using the same terminal tab for other ...
7
votes
2answers
115 views

what is `env <command>` doing?

What is the command env ls -al doing? I had a Linux test and there was question: "How to run command directly, but not its alias?" I knew that there exists solution like prefixing command with some ...
1
vote
2answers
353 views

Get common name (CN) from SSL certificate?

I have a SSL CRT file in PEM format. Is there a way that I can extract the common name (CN) from the certificate from the command line?
2
votes
1answer
55 views

bash: color matching string [duplicate]

I am looking for a command which would color a matching string in text. I.e. I am looking for functionality similar to what grep does, but I want to see the complete text not only the matching lines ...
2
votes
1answer
101 views

How do I create a dialog with multiple text fields using zenity?

I want to crate a GUI for some command line programs and I need to get info from multiple text fields e.g. 'Username', 'Password' and a checkbox 'Sign automatically?'. I need to set particular ...
24
votes
5answers
1k views

How do I get a websites title using command line?

I want a command line program that prints the title of a website. For e.g.: Alan:~ titlefetcher http://www.youtube.com/watch?v=Dd7dQh8u4Hc should give: Why Are Bad Words Bad? You give it the ...
2
votes
4answers
492 views

How to use ifconfig to show active interface only

By default ifconfig will show me all available interfaces , but what if I just want to display active ones? Like, en0 only in below. en0: ...
2
votes
1answer
156 views

Unable to install SciPy

I need to use the module skimage, which calls the module SciPy (I need to find contours) import numpy from sys import argv from PIL import Image from skimage import measure # Inicialization ...
3
votes
4answers
122 views

How do you find what keys the “erase” and “line-kill” characters are in Ubuntu?

I'm new to Unix and have bought today a copy of "The Unix Programming Environment". I'm trying out the stuff from the book. But some of them are not working as expected like : To kill a line and ...
5
votes
2answers
100 views

Show tail of files in a directory?

I have a directory that is too huge to browse by any means. Grepping returns argument lists too long, WINSCP crashes when trying to open the directory. Is there a way I can view just the last 200 ...
3
votes
1answer
65 views

Getting size of directories and exclude some folders

I have an directory structure like this: application1 application1_edit application2 application2_edit Is there any way to get the total size for every folder (including sub-directories) and ...
1
vote
1answer
84 views

Can I split a avi file into 2 valid (watchable) files with only standard unix commands?

The question is self explanatory. I have a very big movie file, I want to split it in 2. How can I do this?
2
votes
1answer
196 views

List a directory, including subdirectories, with file count and cumulative size

Is there a way to list out the content of a directory including subdirectories with a file count and cumulative size? I would like to see: Number of directories Number of sub directories number of ...
0
votes
2answers
71 views

Regex and patterns on a ksh command line

I'm wondering what's the difference between using * and .* in a regex string. I guess, * stands for "0 to n characters" but I don't see what .* stands for. For example, what is the difference ...
2
votes
2answers
183 views

get age of given file

How can I get the age of a given file in, at least, days? I'm well aware of ls -lh and similar commands. I want something that will work sort of like this: getfage <FILE> # prints out '12d' ...