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

learn more… | top users | synonyms (1)

2
votes
1answer
35 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?
1
vote
2answers
61 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? ...
1
vote
2answers
228 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
48 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 ...
3
votes
1answer
58 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
1answer
150 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?
3
votes
2answers
111 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: ...
16
votes
6answers
714 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 ...
6
votes
1answer
145 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
169 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
204 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, ...
9
votes
1answer
126 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 ...
2
votes
1answer
58 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
3answers
174 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, ...
4
votes
1answer
312 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 ...
4
votes
1answer
364 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
120 views

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

How to list available shells for use by command-line?
3
votes
0answers
142 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
45 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?
2
votes
1answer
293 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 ...
6
votes
1answer
104 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
94 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 ...
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 ...
2
votes
1answer
103 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
1answer
243 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
75 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 ...
0
votes
1answer
43 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
151 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 ...
8
votes
2answers
531 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. ...
7
votes
6answers
2k views

How to read first and last line from cat output?

I have text file. Task - get first and last line from file after $ cat file | grep -E "1|2|3|4" | commandtoprint $ cat file 1 2 3 4 5 Need this without cat output (only 1 and 5). ~$ cat file | ...
3
votes
1answer
68 views

Concatenate in a PDF the first page of several odt files alphabetically

I have, in the same directory, several odt files. I'd like to have in one PDF document the first page of these odt files, sorted alphabetically based on their filename. For example, if I have these ...
5
votes
1answer
166 views

Command-line incremental backup tools

Which command line backup tool(s) has the best compression ratio? I want to backup my entire system, including media files, text files etc. I found this list on the Arch wiki site but I don't know ...
2
votes
1answer
53 views

How to transform a text file into a picture

If I have a plain text file, how can I convert it to an image file through the command line? (and preserve the layout of the ASCII art in it)
2
votes
2answers
180 views

Use output from head to copy files with spaces

I have 11 files with spaces in its name in a folder and I want to copy the newest 10. I used ls -t | head -n 10 to get only the newest 10 files. When I want to use the expression in a cp statement I ...
2
votes
2answers
45 views

Is it possible to obtain OS X versions of Unix tools on modern Linux distributions (like Ubuntu or RedHat)?

I have observed that there are often subtle and often annoying differences between the default versions of certain command line tools like paste and sed on modern distributions of Linux versus OSX. ...
2
votes
2answers
141 views

“cat” command: how to automatically escape everything that might be a violation?

If you copy the contents of httpd.conf and then paste it into a cat command.. such as this one.. #!/bin/bash cat > /test << EOF pasted here.. EOF you run into this error: -bash: ...
3
votes
2answers
351 views

change url of web browser thru command line?

Is there some way to change the current url (of current tab or an specific tab) of a running web browser (any) thru command line? It can be any browser that run on linux, preferably if it is light ...
2
votes
1answer
180 views

How to enable double tab autocompletion list in bash?

I've worked in Linux before where when I press tab it autocompletes until it becomes ambiguous. If I pressed tab twice at that point it would give me a list of all possible completions. My current ...
5
votes
1answer
141 views

Strange kind of “stealth” directory on Linux

I am in a Linux machine and am working with a directory that is aptly named "stealth", because it runs and hides! Take a look at this behavior: bash-3.2$ ls /net bash-3.2$ ls -la /net total 4 ...
1
vote
3answers
425 views

copying files with particular names to another folder

I have a folder with a lot of files. I want to copy all files which begin with of these names (separated by space): abc abd aer ab-x ate to another folder. How can I do that?
0
votes
1answer
232 views

Download all source files for a webpage

I want to download the source files for a webpage which is a database search engine. Using curl I'm only able to download the main html page. I would also like to download all the javascript files, ...
8
votes
3answers
1k 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: Essential: 100% client-side without relying on ...
2
votes
0answers
33 views

rlwrap-like tool with command autocompletion

I am often using rlwrap sqlite database.sqlite to browse an SQLite table. It works great but I would like to have a tool that would create an index tables (and possible its columns as well) and let me ...
5
votes
1answer
359 views

What's the easiest way to resize an ext4 partition from the command line?

What's the easiest way to resize an ext4 partition (or any type partition depending on the method) from the command line (potentially with the fewest commands, but also the easiest to understand)? ...
0
votes
3answers
51 views

how to export all numbers that are unique in few text files into another file?

I have a.txt,b.txt,c.txt. Each has different numbers as below: a.txt: 12 14 111 1 15 2 b.txt 12 18 22 23 1 2 c.txt 12 14 15 16 17 1200 The output should contains all the numbers from ...
4
votes
2answers
57 views

NFS: share with all clients except one

I want to share a folder with all the network's clients except only one. This is my current /etc/exports file: /opt/resources *(rw,async) What should I add to prevent the client 192.168.1.24 ...
3
votes
2answers
474 views

Mounting Disk Image in Raw format [duplicate]

While Trying to mount a disk image in Raw(dd) format using the following command mount nps-2010-emails.dd /media/manu/ I get the following error message mount: you must specify the filesystem ...
5
votes
1answer
48 views

How to get rid of unnecessary lines in gnuplot

So I'm pretty new to using gnuplot, and my code looks like this: set isosamples 40 unset key set title "Radial Matrix Elements" set xrange [1:15] set yrange [1:15] set xlabel "n1*" set ylabel "n2*" ...
1
vote
0answers
60 views

Conversion of disk image from Encase (E01) to Raw format [closed]

I am trying to convert from EnCase to Raw format using instructions given on this page. The following takes place: manu@ubuntu:~/Downloads$ ewfexport nps-2010-emails.E01 The program 'ewfexport' is ...