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

learn more… | top users | synonyms (1)

2
votes
1answer
618 views

How to resume multiple instances of Screen from command line with minimal steps?

I have about 15 instances of screen running on my linux server. They are each running processes I need to monitor. I had to close terminal (hence the reason I launched screen). Is there a way to ...
39
votes
4answers
66k views

Usage of dash (-) in place of a filename

For a command, if using - as an argument in place of a file name will mean STDIN or STDOUT. But in this example, it creates a file with the name -: echo hello > - How can I make - in this ...
4
votes
3answers
563 views

General specification for command line interface

I was wondering where I can find and learn some general idea about the command line interface used in Linux and bash? As to now, I have found pieces of such information only from experience, such as ...
35
votes
2answers
43k views

How to signal the end of stdin input

In Bash, I learned that the ending signal can be changed by here document. But by default how can I signal the end of stdin input? I happened to find that with cat and chardet, their stdin inputs can ...
23
votes
2answers
58k views

How can I verify SSL certificates on the command line?

I'm trying to validate/verify that the rsa key, ca-bundle, and certificate stored here are ok. They are not being served by a webserver. How can I verify them?
1
vote
1answer
250 views

What's the standard used by yum prompt “Is this ok [y/N]:”?

I can see that uppercase letter means default here. Is there a standard for this? I'd like to read the full standards.
2
votes
2answers
356 views

Software (SciTe) runs differently when opened from Terminal Vs GUI

When I open SciTe from the terminal everything works fine. When I open it via Ubuntu 10.04 GUI drop down boxes I get this error every time I try to run a ruby program: sh: ruby: not found At this ...
3
votes
1answer
738 views

Writing a bash script for apache conf files

I'm trying to automate creating vhosts on my computer. This is merely a learning experience for bash scripting. I'm currently novice. I'm trying to learn more about awk, sed. No, this isn't homework. ...
-2
votes
1answer
511 views

Red hat linux command line character underscore problem [closed]

When I type a command e.g. cd /etc/ I get the following cd /etc$ if I press the backslash key again then I get the correct entry cd /etc/ I am using gnome but I get the same problem ...
2
votes
1answer
9k views

Setenv error message

When I opened up the Gnome command prompt, several lines of the message: No command 'setenv' found, did you mean command 'netenv' from package 'netenv' (command) However, I have never used ...
4
votes
1answer
378 views

Program to filter lines by passing them to an external program?

I'm looking for a program to use an external program to filter the lines of a stream - pretty much a version of grep that, for each line, prints or suppresses it based on whether the specified program ...
7
votes
3answers
3k views

How to install/default to the command line version of Emacs?

I installed Emacs using sudo apt-get install emacs. The problem is that when I launch Emacs from the command line (e.g. emacs main.c) it opens Emacs with a GUI. I prefer the command line version which ...
2
votes
1answer
937 views

Recursively Gziping Files (and keep original files) & Gziping Text Input

I need Gzip to pre-zip some static files for a webserver I'm building. All of the files I need to gzip will be in a folder named .cache. Since some clients may not accept responses that are gzipped, I ...
4
votes
1answer
21k views

Run java classfile from terminal

I have a compiled java file somefile.class, and when i cd into the right folder and do: java somefile it works but when i call it from another folder: java folder/somefile it doesn't work, it gives me ...
8
votes
2answers
3k views

Is there a correct way to list the subdirectories of the current directory?

I can find the subdirectories of a directory by ls -d -- */ or ls -l | grep "^d" but both of these seem indirect, and I would imagine that there would be a standard way to find just the ...
2
votes
3answers
1k views

How to find every file that includes a given function?

I am trying to list all of the files that include a function, e.g., matrixCal. How can I to do this in linux?
1
vote
3answers
4k views

Get line numbers for empty lines

I have a large pipe-delimited file where I need to find the line number of all lines where a certain field is empty. I can use cut -d \| -f 6 filename.txt to output just that column. What is a ...
2
votes
1answer
2k views

CentOS: Alert all desktop users from comand-line

Can someone tell me if there is an way to notify all online (Desktop) users from command-line. I know that if I want that I get notifyed when something is done, I just do like this: sudo apt-get ...
0
votes
1answer
129 views

How to change profile to search current directory?

I would like to change my profile so that I can execute programs in the current directory without ./. In other words: $ foo.sh would accomplish what currently happens with: $ ./foo.sh I'm new ...
2
votes
1answer
694 views

How do I make a droplet/.app in platypus for my unix command?

This is my sample code from the platypus tutorial. I am trying to make it work with a command named pymol, and I want it to open .pdb files or open just pymol. I know nothing about perl, but I have ...
1
vote
1answer
499 views

Need command-line program to download all of http:// https:// scp:// ftp:// style links (on e.g. ubuntu)

I'm writing a perl program where I want to accept all kinds of "file names" from the user, including /home/foo/bar.txt and scp://server/some/file.txt or whatever. And then I thought that if I can find ...
0
votes
0answers
112 views

How to use find command with wildcard when current directory contains a match? [duplicate]

Possible Duplicate: find not recursive when file at top I'm having some confusion with the find command. If I type: find . -name *.xml or find ./ -name *.xml I receive a list of all ...
6
votes
1answer
219 views

Bash executes a different file from the one prompted, even when providing full path

I imagine there's a environment variable or some setting I'm unaware of, but this is driving me nuts. baco:~ # ls -la /root/subversion-1.4.6/subversion/svnadmin/.libs/svnadmin -rwxr-x--- 1 ...
7
votes
3answers
1k views

Lightweight utility/program to run a command after a random delay

I need to randomize the time before a given command starts. I realize it's relatively trivial to do this within a script, or to write a "wrapper" script to do this, but I'm wondering if anyone knows a ...
3
votes
1answer
400 views

rm command returns a message [1] 12345 What does this mean?

I'm trying to remove a file and I keep getting a message similar to: [1] 12345 and nothing happens, I run a directory search (dir) and the file remains and I get a stopped message
19
votes
3answers
12k views

How do I find the window dimensions and position accurately including decorations?

I've been trying to figure out the size of a window for use in a small script. My current technique is using wmctrl -lG to find out the dimensions. However, the problem is this: The x and y figures ...
3
votes
2answers
2k views

How can I automate sending mail using a script?

I have in the past heard of using nail for this task, but I can't seem to find it for my distribution (Ubuntu 11.04) in any of the repositories. What program can I use to one-off emails from a shell ...
1
vote
1answer
2k views

alpine failed to connect to smtp.gmail.com

When I try to send email from alpine I get the following error: Error sending: connection failed to gmail-smtp... (The message disappear before I have the time to copy it). I suspect this is ...
6
votes
4answers
6k views

How to convert to HTML code?

Are there any scripts that can convert between text (e.g. <hi>) and the html entities version (&lt;hi&gt;) like this website does? Or at least a PHP file?
1
vote
1answer
101 views

How do I unset a background in gnome on the command line?

So someone decided to set my gnome background as a practical joke to a rather disturbing picture. However, I don't use gnome and only log into it by accident. I need to remove the picture so when I ...
3
votes
2answers
404 views

What does this Linux command do?

g++ -Wall -I/usr/local/include/thrift *.cpp -lthrift -o something I am new to Linux and am trying to learn "as I go along"....This is from the Apache Thrift website. Also is the -I/usr supposed to ...
2
votes
5answers
788 views

How much disk space does a list of files use

How can I find how much disk does a list of files uses? I'm looking for a variation of du -s *.sql I want to see only the grand total, and with the command above, it always shows a line for each ...
3
votes
4answers
118 views

command for joining a series of files together

I have... me@computer:~/gutenberg/euclid$ ls book01.html book04.html book07.html book10.html book13.html book02.html book05.html book08.html book11.html book03.html book06.html ...
0
votes
1answer
117 views

Video archiving method?

I want to archive family videos, films, etc. I'm currently using: mencoder INPUT.avi -o OUTPUT.avi -ovc x264 -x264encopts bitrate=750 pass=1 nr=2000 -oac mp3lame -lameopts cbr:br=128 I want to ...
15
votes
5answers
7k views

Alternative to find?

Is there an alternative find program with a more conventional CLI interface? find works and expects parameters in a painfully different way from most other utils. Clarification: I'm looking for a ...
8
votes
2answers
2k views

Directory “diff”?

I have two directories which are different versions of the same software package. I'd like to list all the files/directories that have changed between the two then copy those differences to a new ...
3
votes
2answers
207 views

Commandline tool for comprehensive and integrated testing of internet connectivity

Is there a commandline tool for GNU/Linux which will analyse download and upload speed, packet-loss, latency and other factors which will indicate internet connectivity status?
3
votes
3answers
3k views

How to lock on Solaris 10?

On Linux I use flock lock command to execute a command with an exclusive lock. What is the standard operating system command of Solaris 10 to do the same in a shell?
54
votes
4answers
67k views

How to copy the partition layout of a whole disk using standard tools

I want to take a backup of the whole partition layout of a hard drive, including logical drives, so that I can restore that layout to another disk. I do not want to copy the contents of the partitions,...
6
votes
2answers
6k views

using the mail command

How do I use the mail command to check email (and send email) from gmail. Does it support labels? I couldn't have figure out where to put the username and password. I tried to search for instruction ...
1
vote
4answers
452 views

No manual page for regex in section 3 - where is it?

I found What do the numbers in a man page mean? which explains the sections for command/library documentation quite nicely, and I was looking at the output for man regex and noticed the See Also ...
4
votes
1answer
982 views

How to execute shortcut keys from command line?

I am running Gnome. I would like to execute a shortcut key combination from the command line. For example, type a command that generates the key codes for Ctrl+Alt+Left. Does anyone know of a way to ...
4
votes
2answers
4k views

Terminal command vs. GUI drag & drop when copying large no. of files: Any tangible benefit?

I'm finding myself in a terminal more and more often these days as I learn to do certain types of things quicker or more conveniently. However, when it comes to copying a large amount of data (i.e. ...
3
votes
2answers
4k views

Running C Programs on Linux

I watched a video lecture today that introduced C and things like how to make a C program that will run in Linux. I followed the steps given and now I'm stuck with a bit of a problem. I created my C ...
43
votes
6answers
24k views

Split pages in pdf

I have a scanned pdf file which has scanned two pages on one virtual page (page in pdf file). The resolution is with good quality. The problem is I have to zoom when reading and drag from left to the ...
53
votes
8answers
155k views

How to determine Linux kernel architecture?

uname -m gives i686 and uname -m gives i686 i386 output in Red Hat Enterprise Linux Server release 5.4 (Tikanga) machine. I need to install Oracle Database 10g Release 2 on that machine. So, how can I ...
10
votes
5answers
11k views

Show contents of many files

From the command line, what is the easiest way to show the contents of multiple files? My directory looks like below. ./WtCgikkCFHmmuXQXp0FkZjVrnJSU64Jb9WSyZ52b ./...
1
vote
3answers
6k views

How to kill a printing job on centOS

How does one kill a printing job on centOS?
2
votes
6answers
458 views

Searching strings on files

I've got a bunch on strings which I need to find in a couple of files, for example: string1 string2 stringn file1.txt file2.txt filen.txt Is there an (easy) way to do that in bash? I need to know, ...
4
votes
3answers
4k views

Gnome Logout from command

How to get logout from Gnome session via command line ? Also Is there any way in GNOME to do "switch user" from command line ?