LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2008, 06:44 AM   #1
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 544

Rep: Reputation: 40
Comman Line Short Cuts


I just learned that you could do this so i wanted to pass this on...

Long way:
chown user
chgrp group

Short way:
chown user.group


Long way:
command 1 <enter>
command 2 <enter>
command 3 <enter>

Short way:
command 1;command 2; command 3 <enter>
 
Old 06-04-2008, 06:54 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Hi,

This: chown user.group does not always work (depending on linux/unix flavor).

This does: chown user:group
 
Old 06-04-2008, 07:53 AM   #3
indeliblestamp
Member
 
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Blog Entries: 3

Rep: Reputation: 39
Related tip: command 1;command 2 might not always do what you want in case command 1 fails. e.g.
Code:
./configure; make
Suppose configure fails, running make is pointless. In such cases I use
Code:
./configure && make
This ensures that make is run only if configure exits with a successful return code (0?).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard Short Cuts TWOSPEED Linux - Newbie 3 09-29-2006 05:55 AM
Key Board Short Cuts pujansrt SUSE / openSUSE 3 08-31-2006 11:56 PM
short cuts rakriege Linux - Newbie 1 10-21-2003 09:44 PM
Terminal short cuts Skiny Linux - Newbie 4 06-27-2003 10:39 AM
short cuts console jayakrishnan Linux - General 1 08-14-2002 04:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration