Debian :: Multiple Commands Displayed On A Command Line?

May 21, 2011

I am trying to get 2 things to operate on the same line, for example echo Current Version: [cat /file/ver.txt] is there a way to do this?

View 1 Replies


ADVERTISEMENT

General :: Getting LESS To Return Back To Command Line If A Short File Is Displayed

Aug 12, 2010

Is there a command line option that will allow less to return to the command line if there are not sufficient lines in the file to warrant paging.

View 1 Replies View Related

Fedora :: Create A GUI Interface For Some Command Line Commands?

Aug 22, 2011

I'm developing in java.

I want to create a GUI interface for some command line commands (drush - drupal).

How can I interact with the command line commands with java? or any other languege?

View 6 Replies View Related

OpenSUSE :: KDE4 Icons And Command Line Commands?

Sep 3, 2010

I'm running Suse 11.3 with KDE4.I have an icon in my Kickoff Application Launcher for xterm. WhenI click on the icon, it apparently executes the command /usr/bin/xterm which generates a large window with a large font.I would like to get a smaller window with a smaller font. I knowhow to do that on a command line but to execute the commandI need to _already_ have a window open so I can run the command.So how do I (a) add a new icon to the KDE launcher which generates the command I want or (b) change the existing iconso that it executes MY command and not the basic /usr/bin/xterm?

View 2 Replies View Related

General :: Execute My Scripts (example.sh) Files Like Other Normal Commands From Command-line?

Jun 23, 2010

I just want to know that how can I execute my scripts (example.sh) files like other normal commands from command-line. Please describe the full method

View 5 Replies View Related

Debian :: Disc Space Displayed Wrong When Using DF -H Command

Oct 20, 2010

When I use the command df -h on one of our debian linux machines I get back that I have 0 space left on /dev/md0/. I tried to find out where all 60G of space was being used but am unable to find it. Could this reading be wrong? Also, where could this space be being used?

View 3 Replies View Related

General :: Free Command Line Tool Time Which Can Be Used To Find Timing Statistics For Various Commands?

Jun 24, 2011

I'd like to measure network latency for SNMP GET request. There is a free command line tool time which can be used to find timing statistics for various commands. For example it can be used with snmpget in the following way:$ time snmpget -v 2c -c public 192.168.1.3 .1.3.6.1.2.1.2.2.1.10.2IF-MIB::ifInOctets.2 = Counter32: 112857973real 0m0.162suser 0m0.069ssys 0m0.005sAccording to the manual, statistics conists of:

the elapsed real time between
invocation and termination,
the user CPU time (the sum of the

[code]....

View 3 Replies View Related

General :: Multiple Lines At The Command Line?

Feb 22, 2011

I've seen a few tutorials that have commands and parameters on multiple line, like the one below:

Code:
chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start

I can copy and paste this in Putty, but what if I want to manually type it? If I press return, the first line gets processed, so how do I insert a new line?

View 4 Replies View Related

Ubuntu :: Find Multiple Files In The Command Line?

Mar 2, 2010

command line, I have a server for work that I ssh into and I need to be able to find multiple files (they have the leading text just the date identifier changes) and then zip the files (with bzip) them and then finally scp(Secure copy) them to another server.

These files are always in the same directory and this is a daily task and just want to make into a script that I run once I am logged into the remote server.

View 4 Replies View Related

Ubuntu :: Use Multiple Cut Command To Print Output On A Line?

Apr 27, 2010

how to use multiple linux cut comman to display on same line ?

e.g ls -il | cut -f6 d:
ls - il cut -f9 -d:

The linux script output is

filename
123

How to use cut to display on same line ?

View 1 Replies View Related

Ubuntu :: Move Multiple Files Via Command Line?

Sep 15, 2010

I liked the idea of the "cosmos" screensaver/desktop, but wanted to add my own pictures to the application. I navigated to /usr/share/backgrounds/cosmos and tried to drag and drop. I quickly found that I did not have permission to do this.

I googled my problem and found some command line tutorials telling me to sudo cp. My problem is that I have about 30 pics that I want to move in there, and I don't think I can just move the directory, they have to be in that folder as the pictures themselves.

I don't really feel like typing the cp line multiple times with multiple randomly named image files.

Is there a way to have the command line cp all of my files from one directory to another?

View 4 Replies View Related

General :: Command-line On Multiple Monitors, ScreenWM?

Mar 26, 2010

I have an older computer with Arch installed that I want to use to accomplish most of my daily tasks using the command-line (Mailgrab, IRSSI, mpg123, Elinks, Vi, etc). I realize that there are many lightweight WMs out there that support multiple monitors, but it'd be nice if I could just use Screen or something to that effect to distribute my windows across two or three displays.

View 1 Replies View Related

Debian :: Apt-get Error HTTPS In Line Commands

Jun 29, 2015

I have installed debian 8 on acer aspire one, all run well but when i do the Command's VT320, i have errors with HTTPS protocol ! Since the browser Iceweasel, the connexion of web sites HTTPS work well ! This is the sample of "apt-get" with google Chrome :

Code: Select allroot@sta-krups:/home/phipo# apt-get install chromium
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Paquets suggérés :
  chromium-l10n chromium-inspector

[Code] ....

I have checked if the problem is with Openssl, the server is installed, and work well.

View 4 Replies View Related

General :: Inserting Multiple Files To Mysql On Command Line?

Mar 5, 2011

I am using ubuntu and mysql.I have a list of many .sql files, like 1.sql, 2.sql, 3.sql ... 100000.sqlI need to insert them into the database mysql mydb < *.sqlGives me: -bash: *.sql: ambiguous redirect

View 2 Replies View Related

OpenSUSE :: Count Lines In Multiple Text Files From Command Line?

Apr 27, 2010

I want to (from the command line) be able to counte lines in a bunch of files of a specific type in a folder and all its sub-folders. How would I do this?

View 1 Replies View Related

General :: How To Program The Command Line To Run A Piece Of Code Multiple Time

Dec 4, 2010

So, I usually write/find a test case generator for any code that I write. This type of code generally leads to some file output. To be thorough, I try and generate many different files to test my code on.

Say the command is like this:

Is there a way to automate this for many different values of the parameters and generate many different files?

I tried:

I wasn't able to use the $i in the filename, and without it the command gave me no errors, but did nothing else either. I know the Unix command line is very powerful, and I have a feeling that this should be possible, but I just don't know how to do it.

View 3 Replies View Related

Ubuntu :: Command Line - Find And Replace Text Within Multiple Files?

Aug 28, 2010

I'm pretty sure this is doable from the command line, but my CLI skills have degraded a lot since my pre-Y2K admin days. The goal is to search all the files in the directory for a very long string of text and replace it with another string of text. The text being searched for is my Google Adsense code (which will be stripped from my website) and it will be replaced with a placeholder so I can easily tack something else in there in the future.

Seeing how I have that long snip of code on about 100 pages, automating the process would make life easier.
If I was searching for a single word, I can see ways to do this.
If I paste the code I'm searching for into a text file, is there a way to:
find (contents of oldstring.txt) and replace with (contents of newstring.txt)?

View 9 Replies View Related

Ubuntu :: Quickly Remove Multiple Related Packages From Command Line?

Feb 15, 2011

Is there any way to quickly remove multiple related packages from the command line instead of having to enter the name of every single one? I am trying to remove OpenOffice from my server running 10.04. It would work nicely if I could get a list of packages without line breaks, such as the list displayed by aptitude when upgrading. That way I could just paste the package list into the terminal. However, "aptitude search 'openoffice'" dumps a long list on many lines that cannot be used that way.

View 3 Replies View Related

General :: Making Multiple Duplicate File Copies Using Cp On Command Line?

Jul 21, 2011

I want to take a graphics file and make 10 copies of it to the same directory, each with 001, 002, or some such designation at the end of each file name so they have discrete files names. Is this possible using cp?

View 12 Replies View Related

Ubuntu :: Carry Out Mysql Commands Directly From The Ubuntu Command Line Interface?

Mar 10, 2011

Is it possible to carry out mysql commands directly from the ubuntu cli rather than open mysql?eg to create a database I would normally type

Code:
user@localhost:~$ mysql -u root -p
then INSIDE the mysql CLI I would type

[code]....

View 3 Replies View Related

Fedora :: Run Python3 Scripts From Command Line And Call Up Python 2.6.2 Idle With The Command Idle From Command Line?

May 29, 2010

i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?

View 5 Replies View Related

Debian :: Installing Command Line Debian Squeeze System On Eee PC 701

May 29, 2011

I have been trying to install a command line Debian Squeeze system on n Eee PC 701., but have run into a number of problems:

1) All install info I can find assumes that the person wants to install a GUI system of some sort.
2) The Eee PC has a unique 2 MB. partition that needs to be preserved, so no guided install.
3) The Eee PC has an SSD instead of an HD. Most postings I have seen recommend an install without a swap partition, but the install (both live and text) seems to choke and despite a fresh formatting of the existing partition, claims to be overwriting existing files.
4) I can understand from the wiki that the Eee PC wireless driver (Atheros) should be included in Squeeze, but when the wireless connection and password is added, the installer claims that the password is not correct, despite me having checked it a number of times.

I hope someone can help me out. I just want to use the Eee PC for low resource stuff done on the cli like using a text based web browser to access the net through a wireless router and to hook it up to an external USB HD and to my stereo, to play my music collection.

View 14 Replies View Related

Debian :: "xterm -e [multiple Commands]"?

Jun 28, 2011

I'm looking for a way to use "xterm -e" with multiple commands. (the -e option set the beginning program of xterm session)I have a script like this:

echo "answer? "
read answer_a
if [ $answer_a = 'y' ]

[code]...

View 7 Replies View Related

General :: Using Sed To Extrac Data From Xml Tags And Make The Result Displayed In One Line?

Apr 18, 2011

I have an xml file that is similar to this.Suppose that this file name is Example.

<PMID>10605436</PMID>
<Year>2000</Year>
<ArticleTitle>Steroids</ArticleTitle>

[code]...

View 5 Replies View Related

Debian :: How To Use The Terminal Command Line?

Apr 28, 2010

direct me to a good beginner's guide to Debian? Or explain some things briefly. Where can I learn how to use the Terminal Command Line? How do you add programs to Debian and what all is supported? What are packages in Debian and what can they do? Installing programs is different as expected. I tried installing Firefox, I downloaded it and extracted it into my home directory. I can run it with the Terminal Command: ~/firefox/firefox [When in the home directory] and it works. Is that how it is intended to work? Just random thing there. I guess in a sense, I just really want to learn about every aspect of Debian Linux in a user-friendly type environment.

View 3 Replies View Related

Debian :: Getting Files With The Command Line?

Dec 28, 2010

how to download or upload files to a Debian machine using only the command line. I well aware of how to do it in GNOME, but seeing as how this is for a web server, I won't be using GNOME. I have a zip file on my personal machine that contains the website files that need to go on the Debian machine that is to be the web server, but I have no how to get it to that Debian machine without GNOME.

View 14 Replies View Related

Programming :: BASH: Each Line Of Multiple Text Files Gets Added To One Line?

Sep 12, 2010

I currently have 3 files with floating point data that I wish to have in a single file with the format:

Code:

F1 F1 F3 Output
a1 b1 c1 a1 b1 c1
a2 b2 c2 a2 b2 c2
a3 b3 c3 a3 b3 c3
a4 b4 c4 a4 b4 c4

View 3 Replies View Related

Programming :: Bash Reading Multiple Files Line By Line?

Mar 8, 2011

I have a set of files containing data that I need to re-arrange into one single property list.

The files that I have look like this:

Code:
# cat uk
<string>10</string>
<string>11</string>
...
<string>29</string>

[Code]....

So the lines in the files match up but I haven't found a way of reading several files line by line.

View 3 Replies View Related

Debian :: Install A Program Using The Command Line?

Jan 29, 2011

I tried to install Vlc using the terminal (terminal as root). I've used the command aptitude install vlc. Instead of installing only vlc, my gnome desktop environment was removed, gdm was removed, many more programs was removed! What's the command for installing just a single program using the command line? I was used under Ubuntu to use the command sudo apt-get install [***]

View 14 Replies View Related

Debian Installation :: Boot To Command Line Rather Than GDM

Jul 28, 2014

What is the simplest way to boot to command line rather than gdm ?

I've seen post to change
# The default runlevel.
id:2:initdefault:
to
id:3:initdefault:

and

update-rc.d -f gdm remove
update-rc.d -f kdm remove
update-rc.d -f xdm remove

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved