Ubuntu :: Can I Cd And Rm In A Single Command

Jul 19, 2011

I delete a particular file often. first I have to cd then I have to rm.Is there a way to do this on a single line?

example

cd ./ssh rm known_hosts

that doesn't but is there a way to do it?

View 6 Replies


ADVERTISEMENT

Ubuntu :: Single Tab To Complete Command?

Mar 7, 2011

I have recently installed Ubuntu 10.10 Server onto a old PC. Everything seems to be working fine except that i can't tab the next command.Like when you are typingcd hom (Then you press tab and the 'e' appears.)When i double click tab I get a list of all the possible directories but I wont seem to work when I press it one time just to complete my command.Anyone got a clue how to fix this?(I am new to this community but I got to say i Love it. We use Ubuntu at our university and it rocks!)

View 3 Replies View Related

Ubuntu :: Every Single Command Produces An Error

Apr 15, 2010

I went to a help site because I wanted to install an IRC client named seamonkey. I followed the directions step by step, copy and pasting each and every command into my terminal command line as per the instructions. Every single command produced an error. Needless to say, I was unable to install it. What's even more frustrating is I can't even post the url for the site here so someone can see what commands I was using.

View 10 Replies View Related

Red Hat / Fedora :: Set Password In Single Command?

Dec 1, 2010

Can we set password for linux board's in non-interactive mode.I didn't find suitable option for this in man page.

View 1 Replies View Related

Programming :: Grep, Cut, Cat In A Single Command?

Apr 26, 2010

Would like to know how to cat the below output.

Code:
grep userlist_file /etc/vsftpd/vsftpd.conf | cut -c15-
Below which is the output for above command.

[code]...

View 6 Replies View Related

Ubuntu :: Installing 64 Bit Adobe Flashplugin Preview In Single Command

Sep 17, 2010

I posted a blog on how to install 64 bit adobe flash plugin in Ubuntu Lucid in a single command

[URL]

The command is

sudo aptitude remove flashplugin-nonfree flashplugin-installer && mkdir -p flashplugin-64 && cd flashplugin-64 && wget -c http://download.macromedia.com/pub/l..._091510.tar.gz && tar xzf flashplayer_square_p1_64bit_linux_091510.tar.gz && sudo cp libflashplayer.so /usr/lib64/mozilla/plugins/

View 2 Replies View Related

Ubuntu :: Two Files Containing Bits Of Info That Both Need To Be Included In A Single Command?

Mar 18, 2011

I've been searching high and low for a solution to my problem, and have not had much luck as to yet!The situation is: I have two files containing bits of info that both need to be included in a single command, such as a for loop, but as separate elements. What I need to do is basically this:Code:ssh <servers in list a> ls -la | grep <items in list b>Does anyone have any thoughts on how I might do this? Is it possible to do using bash scripting alone?

View 3 Replies View Related

Ubuntu :: Remove All Foldernames Which Contains Spaces In Desktop With A Single Command?

Jun 8, 2011

How to remove all foldernames which contains spaces in Desktop with a single command?

View 7 Replies View Related

OpenSUSE :: Command To Upgrade A Single Package?

Sep 3, 2010

Is it zypper in <package> or zypper up <package> or both?

View 4 Replies View Related

Ubuntu :: Single Command That Will Remove All 'other'permissions From All Files And Directories Under /home?

Sep 10, 2010

What is the single command that will remove all 'other'permissions from all files and directories under /home.
Just starting to learn Linux.

View 1 Replies View Related

General :: Creating User With Password In Single Command?

Jan 16, 2010

I'm trying to create a user john with default password 'abcdef'. I used the following command.

useradd john -p abcdef

I can't login with the password. in /etc/shadow file I can see the password in clear text format. how I can create a user along with password.

View 3 Replies View Related

General :: Sudo For A Single Command With No Password Entry

Apr 20, 2010

I wish to allow a user to use sudo to run a single command (service app status) to determine if my application app is running, in my sudoers file i have: user ALL= /sbin/service app status I understand that there is a parameter called timestamp_timeout that will set the timeout for the 'user', but requires at least 1 entry of the root password.

I wish to allow the user to do "sudo service app status" and not have to enter the root password ever(maybe once is ok), but still make the user enter the root password for all other root activities. Is there a way to prevent the password entry for this command only and no others?

View 3 Replies View Related

General :: Check Performance Of Multiple Machines With Single Command?

Jul 5, 2011

i have 30 linux PCs running. i need to check the performance of all pcs( memory,ram and process usage) in single command or in GUI mode.In solaris we have perf script to check performance in GUI mode. i need same type in linux?

View 1 Replies View Related

General :: Copy A File To All Subfolders In A Directory Using A Single Command?

Jul 18, 2010

I'd like to copy a file, say widgets/water.txt, to all subfolders in the folder widgets using a single command. So if the folder widgets has 10 subfolders like widgets/blue, widgets/green, etc. I'd like to copy water.txt to all of them with one command.

I tried the commands

Code:

cp water.txt ./*/water.txt
cp water.txt ./*/

However these don't seem to work. The latter gives 'cp: omitting directory' errors.

View 7 Replies View Related

General :: Move 10 Files Of .dat Extention To .txt Using Single Command Or Script?

Nov 22, 2010

I have 10 files of .dat formatsayA MCDR .datB MCDR .datand so one upto 10 dat filehow i convert these 10 dat files to txt files using single command or script

View 6 Replies View Related

General :: 'watch' A Command Including Both Of Single And Double Quote?

Aug 12, 2010

I want to watch a number of processes in "D" status repeatedly with following command:Code:# watch -n 1 'top -b -n 1 | awk '{if ($8 == "D") {print; count++} } END {print count}''but it didn't work. I also tried with double quote. Can I use 'watch' command is this case?PS: I know 'while' and 'sleep' can do the same but it is dirty workaround.

View 2 Replies View Related

General :: Script To Open All Subdirectories Of A Single Directory And Then Run A Command?

Mar 24, 2010

I am trying to write a very simple script that will go to every subdirectory of a single directory and run a command (lets call it make_ndx).I know I can write this the long way with in a text document with something like:

cd /"the directory"/"the 1st subdirectory"
make_ndx
cd ..
cd "the 2nd subdirectory"
cd ..

Alternatively, I also tried: for i in 'find /path/somemorepath -type d -mindepth 1'; do cd $i; make_ndx -f *.gro; done which returns me with the error cd: find: no such file or directory. But if I run the find command by itself to test if I am calling the right directories, it gives me the exactly the output I am looking for. Any ideas? Should I just write the find results to a file and loop through the contents of the file (which seems a little bit like overkill) or am I just making a simple typographical mistake and I am just not seeing it?

View 7 Replies View Related

General :: Vim To Input A Single Character And Continue In Command Mode

Jun 23, 2011

I increase my knowledge in vim in two ways. Little hints about doing this or that and scattered studies using the vim help files. Please do not believe I always rely on the first one.

View 12 Replies View Related

SUSE / Novell :: List Out All Cron Job Details With Any Single Command

Mar 31, 2010

I am using SLES10 and i checked with command crontab -l and when i compared it with the cron.d/daily/monthly/hourly , all they are different. is there any single command that list out all the cronjobs that exist under the system.

View 3 Replies View Related

Programming :: Multiple Input Into Seq Command From Pipe - Single Column Unique Numbers

May 13, 2011

Have this script which is reading in a series of files, one at a time with while-do-done loop, each file goes through various greps/awk's where this info is then saved to various files for later use. i.e....

Script is being run on Linux Red Hat,

In one of the grep/awk's the output (currently) are 2 columns (min max), i.e....| awk '{print $1, $2}' | sort -u which outputs (e.g.)

The number of "min max" pairs varies from file to file. Want to output a single column of unique numbers from the min max pairs & get the number of them for input to a file...i.e...

Where <PROCESS> is some process/technique that will generate a single column of integers (increment of 1) to pipe into the next one (sort -u)

i.e. (example from above)

Have tried command seq - only works for single pair input i.e.

Is there any command like seq etc which will output a single column based on a input of min max numbers (increment 1) to pipe onwards to next command?

View 4 Replies View Related

Programming :: Connect Multiple Sockets From A Single Client To A Single Server And Keep Them Open?

Oct 13, 2010

I have question about the UNIX sockets. my goal is to connect multiple sockets from a single client to a single server and keep them open...I'm not sure if that is possible to create or not. Do you have any suggestion or an example of code?

View 1 Replies View Related

General :: Copy A Read-Only File And Make The Copy Writable With A Single Cp Command?

Mar 1, 2011

How to copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The --no-preserve and --preserve seemed to be good candidates, except that they should "and" the mode flags, while what I am looking for is something that will "or" them (add +w mode).

More details: I have to import a repository from GIT to Perforce. I want that all Perforce depot files are Read-Only (that is how Perforce was designed), while all other files that were derived/copied from depot files are writable. Currently if a Makefile tries to copy a Read-Only file then the derived file will also be Read-only. This leads to build-errors when cp tries to overwrite Read-Only file second time. Of course the --force is a workaround here but then the derived file is also Read-Only. Also I do not want to mess with "chmod" after each "cp" command - I will do that only as the last resort.

View 1 Replies View Related

Programming :: Printf: Giving "001 002 003 004 006.... 150" In A Single Line Dash Command

Jan 15, 2011

I am intended to simply make printf give "001 002 003 004 006.... 150" but with the single command line of SH (dash) ... not easy ...

Code:

tucholsky:~$ seq 1 1 150 | sed 's/([0-9]+).*/1/g' | tr '
' ' '
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48

[code]...

For the geeks, which distro/version is it, based on the code above

View 6 Replies View Related

Software :: Use Command Line To Split A Single-lined XML Into A Multi-line XML?

Dec 9, 2010

I have a many text files that have XML tags all shoved into 1 line. I want to create a new file that splits each XML tag onto a new line. code...

View 3 Replies View Related

Ubuntu :: Disable Gdm And Run A Single Gui App?

Jan 15, 2010

i disabled the gdm from RC start-up scripts so now my ubuntu will boot only in text-mode (terminal) ,but what i need to know is how can i run a single application for ex. Firefox in gui mode ,by keeping gdm disabled ,i tried using startx but it did not solved my issue .

View 8 Replies View Related

Ubuntu Multimedia :: Rip DVD To A Single VOB?

Aug 4, 2010

I'm trying to rip a bunch of DVDs to my HTPC. I'm a bit of a quality fiend, and since I have 2TB of hard drive space, I want to rip straight to raw VOB files (that, and it's WAY faster than transcoding). So far, I've tried several methods:

vobcopy -l -t movie

This DOES create a single file. However, when it is played, the seek is limited to the length of the first VOB file. For instance, one of my movies starts with an 8 second VOB followed by 4 other larger files. When playing, I can only seek within that 8 seconds.

dvdcopy and cat/mpgcat/vobcat

Same issues. Using cat gives seeking issues - limited to the first VOB's length. mpgcat complains that the audio tracks of each VOBs on the disc are of different bitrates, and I have to force the rip. The completed file once again has seek issues.

I'd LIKE to do this from the command line. Also, I am actually ripping ISOs. I originally ripped my DVDs to my drive as complete images, but now I just want the main feature. So, if you have any better ideas with dealing with the raw files, that would be better.

View 6 Replies View Related

Ubuntu :: Single App For X User

Jun 23, 2011

Is there a way that I can have a user on my Ubuntu 11 box that when logged in it automatically opens X program and nothing else, no window manager nothing, single program for that user only?Here is the scenario, I have 3 users, one is called Skype. I want when someone logs into the skype user no window manager at all be available to that user from the GDM and for xwin to automatically start skype up.

View 1 Replies View Related

Ubuntu :: Single Font File - TTF ?

Feb 6, 2010

I've seen a lot of documents which use a really beautiful font. This is an example:[url] I mean the font which is used for "Problems", 'The area of a regular...'. Well, I found out that it's somehow called TeX font and I tried to download it. Unfortunately, this is font is separated in many, many files (Italic, Bold, Standard, Italic Bold, Math symbols, other symbols ...). It's horrible, because I would just like to use that font in OpenOffice. I wouldn't like to still change the style by choosing another font. Is there a place where I can download the combined TTF file? So I would just have the bold, italic, math symbols and other symbols in one font without having to choose the different one to just change a style or to enter a copyright sign?

View 4 Replies View Related

Ubuntu :: Squid Single PC Configuration?

Apr 3, 2010

I have configured squid in a single PC to save bandwidth and to block some sites.It works fine,but the only drawback is if the user disables the proxy settings in the browser they can able to browse all sites..Is there anyway to force all my browsers to go through proxy??

View 4 Replies View Related

Ubuntu :: Single USB Install For Use On Multiple PCs?

Jun 29, 2010

I have an Ubuntu install on an 8Gb SDHC Card, customized for my Toshiba NB205. It took quite a bit to get sound and BT working, but now it's fine. Just out of curiousity, I used this same SDHC Card to boot my Dell D610 -- it booted, and sound and WiFi worked fine. I was surprised. There was a single error message after the desktop appeared, but I didn't record it.

I am now wondering: is it practical to use a single USB installation with multiple devices? I can imagine a number of complications, but was surprised that my attempt worked on two very different hardware platforms. There was discussion, when pendrives first appeared, of being able to use one to boot any PC to your own USB-based OS, bypassing any other OS installed on the PC.

View 4 Replies View Related







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