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

learn more… | top users | synonyms (1)

1
vote
1answer
12 views

How can I make mailx inform me of new mail?

I'm trying to set up mailx on my server. On one server (Raspbian) I am informed of new mail with a message You have new mail (or something similar). On another machine (Raspbmc), I never have this ...
40
votes
6answers
14k views

How can I move files and view the progress (e.g. with a progress bar)?

When moving large directories using mv, is there a way to view the progress (%)? The cp command on gentoo had a -g switch that showed the progress.
1
vote
3answers
59 views

Problem when splitting command with backslash in unix prompt

I often use the space-backslash combination ( ) to split a command and its parameters into various lines and make it more readable: /home/user> ls -ltra \ > file1.txt \ > file2.txt ...
1
vote
1answer
35 views

Why does the same sed regex (after grep) fail when run in a bash script vs bash command line?

Here's the script. It is successful when I run it from the BASH prompt, but not in the script. Any ideas? When I say "fails," I mean the sed regex doesn't match anything, so there is no replaced ...
2
votes
2answers
44 views

How could I change Linux command to another key combination? [on hold]

I'm using wmii, so Alt key Linux command was disabled. I want to change Ctrl+F and Ctrl+B to Alt+ F and Alt+ B so that I can use them to jump by word. But I searched on line, and didn't find ...
0
votes
0answers
12 views

command type “hashed”? [duplicate]

type displays information about a command's type. How would it be interpreted if used as a command name? What command "types" are there? In the following example, what does "hashed" mean? Is it ...
56
votes
24answers
8k views

Quick directory navigation in the terminal

I would like to frequently switch between directories that are in totally unrelated paths, for example /Project/Warnest/docs/ and ~/Dropbox/Projects/ds/test/. But I don't want to type cd ...
1
vote
1answer
20 views

How to install package via yum in Fedora

How do I install software using yum? Can you tell me another way to install package in Fedora?
4
votes
1answer
77 views

Can't connect to an external RDS TSG server from home

We have a company RDS (Remote Desktop Server) TSG (Terminal Services Gateway) server, which allows employees to connect to an RDS session from home, so they can see a work RDS desktop from home. This ...
1
vote
1answer
610 views

How to access u boot environment from linux?

How can I access and change the u-Boot env variables in linux. Using the u-boot/tools/env directory in u boot directory: u-boot$ make env Which created the executable file fw_printenv. I copied ...
15
votes
6answers
653 views

How to type several file names with fewer key strokes

If I want to convert a pdf to a png image with imagemagick I do something like: convert -trim -density 400 this_is_a_very_long_filename_of_my_pdf_file.pdf ...
3
votes
1answer
59 views

Check ping statistics without stopping

Is there a way to tell ping to show its usual termination statistics without stopping the execution? For instance, I'd like to quickly view: --- 8.8.8.8 ping statistics --- 2410 packets transmitted, ...
80
votes
13answers
28k views

How to have tail -f show colored output

I'd like to be able to tail the output of a server log file that has messages like: INFO SEVERE etc, and if it's SEVERE, show the line in red; if it's INFO, in green. What kind of alias can I ...
2
votes
2answers
2k views

Example xfreerdp usage with clipboard plugin

FreeRDP 1.0.2 has an updated their parameter syntax for "better interoperability with Windows." I had a problem using the old syntax where the clipboard plugin only worked the first time I pasted, ...
1
vote
2answers
40 views

How to use paste command for many files whose names are not numbers? (paste columns from each file to one file)

To paste many files, whose names are incremental numbers: paste {1..8}| column -s $'\t' -t What if your files wasn't named by number, but only words? It can be up to ten files, what should I do? ...
3
votes
1answer
50 views

How to set default tabs only for cat?

I prefer to set tabs 4 however this may have some side effects, such as for example ls out put may look not properly aligned. How might I configure the terminal / cat to use four spaces for tabs for ...
1
vote
2answers
42 views

Configure bash and/or vim to execute source ~/.bashrc everytime I finish editing it

I would like to execute source ~/.bashrc every time I finish editing a file with vim (i.e. after :wq vim command). How should I configure vim or bash to work that way?
-1
votes
1answer
42 views

man command: is there a way to know the meaning of the output of a command >

Is there a way to know the meaning of the output of a command? Example given: If I type ls -l, I get this ouput: [root@localhost junk]# ls -l total 8 -rw-r--r-- 1 root root 1862 2012-08-25 16:20 a ...
1
vote
1answer
67 views

What does typing a single apostrophe do in terminal? [duplicate]

I typed in a single ' by accident and I got this as a result and exited out of it after typing ' in again. ' > > ' : command not found What does this do?
8
votes
2answers
328 views

disable CTRL-D window close in terminator (terminal emulator)

I am often logged in through multiple SSH sessions. To logout from my sessions, I press CTRL+d, until I am back on my local machine. However, sometimes I press once too many, and my terminal exits. ...
3
votes
2answers
372 views

Jingle CLI client / Jitsi replacement / VOIP

I am looking for a Jingle client for the command line. Currently, I use Jitsi, but my dreams of not needing the GUI for more than just web-browsing are not realized due to my reliance on this ...
8
votes
2answers
1k views

Output ls -l size field with digits grouped by thousands?

It is possible to make ls -l output the size field with digits grouped by thousands? If so, how? For instance: $ ls -l -rw-rw---- 1 dahl dahl 43,210,052 2012-01-01 21:52 test.py (Note the commas ...
3
votes
2answers
73 views

Removing blank spaces and tabs from line without messing with line endings

I am trying to remove all spaces on a file without messing with line endings. This is to be run from inside a bash script. I have tried all the solutions here: ...
9
votes
1answer
109 views

Is there a standard for writing a command synopsis?

It appears to me that everyone has their own idea on how to write a synopsis describing command usage for the end user. For example, this is the format from man grep: grep [OPTIONS] PATTERN ...
6
votes
4answers
8k views

count lines in a file

I'm sure there are many ways to do this: how can I count the number of lines in a text file? $ <cmd> file.txt 1020 lines
6
votes
1answer
113 views

Amplify quiet passages in an mp3 file

I have an mp3 file where is a dialog with two voices and one of the voices is very quiet. Is there a command or application that is able the detect the quiet passages and amplify them? The two voices ...
1
vote
3answers
138 views

Removing a directory that has no files in it

I recently created a username and a group called gamesForAdmin. Since then I deleted it and the folder I made for it is still there: drwxr-xr-x 5 root root 4096 Jul 4 11:28 . drwxr-xr-x ...
3
votes
4answers
55 views

Generate random numbers in specific range

After googling a bit I couldn't find a simple way to generate with a shell command a random number included in a specific range, between a minimum and a maximum. I read about /dev/random, ...
5
votes
3answers
133 views

Combining brace expansion and output redirection

Often, I use parameter expansion on the command-line, such as cp a.{ext1,ext2} which is expands to cp a.ext1 a.ext2 However, in many cases I do not use cp, but another tool, let's call it cat, ...
2
votes
1answer
37 views

Why does tmux fail to “scroll” when entering a command that exceeds one line? (OSX Terminal.app)

When I use tmux and enter a command that exceeds the line, it fails to redraw the previous line. It simply clears the current line and I can't see what I just wrote. It does only redraw the first ...
5
votes
2answers
1k views

How to suspend and resume processes

In the bash terminal I can hit Control+Z to suspend any running process... then I can type fg to resume the process. Is it possible to suspend a process if I only have it's PID? And if so, what ...
6
votes
2answers
4k views

Connect to a Bluetooth device via Terminal

I'm using Mint 15 w/ cinammon. I bought a set of bluetooth speakers and i'm tring to connect to them via terminal. Via GUI i can see them normally and i am connected to them. I want to make a small ...
4
votes
1answer
44 views

Cleaning voice recordings from command line?

I have used Audacity for removing noise from recordings before, however it has very limited command line usage. I have ~100 short lecture videos which I will be watching over the next few months and ...
15
votes
6answers
3k views

How to display numbers in reverse order using seq(1)?

I have iterate over numbers in various order. I am able to display them in increasing order, even with steps like: $ seq --separator="," 1 10 1,2,3,4,5,6,7,8,9,10 $ seq --separator="," 1 2 10 ...
1
vote
1answer
42 views

How to find list of available shells by command-line?

How to list available shells for use by command-line?
10
votes
2answers
2k views

IP to Country console command

Is there a console command that takes an IP address as an input and shows its geographical information like city, country, ISP, etc.?
2
votes
1answer
40 views

List All Network Printers (including ones not installed)

It is easy to list the printers you've already installed with this command: lpstat -a However, this does not list network printers you have NOT installed. nmap will scan for all open ports on the ...
2
votes
0answers
21 views

Import VPN config files to NetworkManager from command line

One can import .ovpn files to NetworkManager through GUI tool nm-connection-editor (right click on nm-applet and click on Edit connections): Add -> Import a saved VPN configuration.... My goal is to ...
3
votes
2answers
22 views

How can I list the info for an array of /dev/disks using bash expansion or substitution?

I want the output of: diskutil list; diskutil info [multiple devices] Without having to do: diskutil info disk0; diskutil info disk0s1; diskutil info disk1 ...etc For example, with many builtin ...
0
votes
0answers
9 views

A commad to change between activities [duplicate]

Is there a command to swtich between activities in KDE plasma-desktop?
6
votes
1answer
53 views

Filetype and dereference when listing directory with LS command

I'm trying to combine arguments to the ls command to list a directory content. What I'm basically trying to achieve is listing the directory dereferencing all links, but showing explicitly that the ...
1
vote
1answer
45 views

Terminal sometimes fails to find executables on local directory [duplicate]

I can open my terminal emulator via a keyboard shortcut or through the apps finder that executes the exo-open --launch TerminalEmulator command. My terminal starts and I can cd to any directory and ...
4
votes
2answers
42 views

Local, timestamped logging of all ssh commands?

How can I keep a local, timestamped record of all remote commands I use in ssh (command-line openssh client started through bash)? Requirements: 100% client-side without relying on server logging ...
2
votes
1answer
58 views

Using a string parameter in terminal

What's wrong with this command: nmcli c up uuid "$nmcli -t -f uuid c" How can I fix it? "$nmcli -t -f uuid c" is a uuid needed after nmcli c up uuid.
1
vote
0answers
14 views

Why does wget return a HTTP 403 error to download openSSH pet? [duplicate]

I am trying to learn how I would get OpenSSH using the command line. I found a *.pet link on this webpage: http://puppylinux.org/wikka/OpenSSH which says: Installation Install an appropriate ...
1
vote
1answer
44 views

Change a value in a config file, or add the setting if it doesn't exist?

When modifying config files from the command line, I often want to find the setting in the config file and modify that line if that setting exists. If that setting doesn't exist, I want to add it to ...
1
vote
1answer
25 views

How to invoke Gnome 3 activity screen using command line?

What I'm trying to do I'm using a Logitech MX Revolution mouse, which has a button below the scroll wheel mapped to search, which I remapped to middle click. For doing so, I had to remap XF86Search ...
8
votes
9answers
3k views

Console Text Editor with Windows-like keyboard shortcuts (ctrl-z, x, c, v)

Ok, I realise that I risk a religious war asking a question about text editors, but here goes. Requirements Mostly used for config file edits Text based not GUI Available for Raspian flavour of ...
0
votes
1answer
25 views

automatically download latest stable tarball from sourceforge from command line?

I'd like to install a program from sourceforge sources. Is there a way to download the latest stable source from SourceForge? an example for ntopng would be very welcome.
1
vote
5answers
79 views

How to copy a file from a remote network to the local desktop

So I used SSH to remotely login to another computer on a network. I have many files that I would like to copy over to my local desktop. I am trying to follow this How-to : However, I think one ...