"; ?>


Go Back   Forums > Desktop O/S Help > Linux Help
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-19-2007, 08:50 PM
Junior Member
 
Join Date: Sep 2007
Posts: 13
Default Command Line: Handy Commands

Below is a quick intro to some of the most useful commands in the world of the Linux command line:

man
Show manual for any given command. Eg:
Code:
man tar
This would show the manual for the tar command. Very useful if you ever find yourself wanting more info on how to use a command.

pwd
Shows the directory you're currently working in.

ls
Lists the files in the pwd.
  • ls -a: Includes hidden files.
  • ls -l: List files along with their vital stats.
  • ls -X: Sort by file extension.
  • ls -sh: List files along with their size.

cd
Change to a new pwd.

mkdir
Make a new directory.

cat
Show the contents of any given file.

rm
Remove a file.
  • rm -f: Force rm to remove files without asking including read-only files.
  • rm -r: Recurse through subdirectories removing them and their contents (rm will otherwise skip directories).

stat
Get all info on a file regarding permissions, ownership, size, etc.
Reply With Quote
  #2 (permalink)  
Old 09-19-2007, 08:52 PM
Junior Member
 
Join Date: Sep 2007
Posts: 13
Default Basic Admin Commands

su
Switch to being the Super User (root). This command will ask for a password.

sudo
Execute a single command as root. This is considered the safest way to do things as root as it's easier to make a mistake while logged in as root.

df
Lists disk usage for all storage devices.
  • df -h: List disk space in KB, MB, GB, etc. (df normally lists space in bytes).

du
Prints disk usage stats for a given directory.
  • du -h: List disk space in KB, MB, GB, etc. (du normally lists space in bytes).
Reply With Quote
  #3 (permalink)  
Old 09-19-2007, 09:34 PM
Junior Member
 
Join Date: Sep 2007
Posts: 13
Default More for Working With Files

which
Shows the exact location in the file system of any given command's binary. Ever wonder where "ls" or "sudo" is? Try "which ls" or "which sudo".

head
List the first 10 lines of a given file. Useful for getting a basic feel for the contents of a file without listing through the whole thing.
  • head -n X: List the first X lines instead of the first 10.

tail
Same as head except that it lists the [i]last[/b] 10 lines of a given file.
  • tail -n X: List the last X lines instead of the last 10.
  • tail -f: Follow a given file's last lines, even if they change. Very useful for monitoring log files as they change.
Reply With Quote
  #4 (permalink)  
Old 10-23-2007, 11:06 AM
Robi's Avatar
Member
 
Join Date: Sep 2007
Posts: 38
Blog Entries: 2
Default A Favoite of mine

One of my favorite commands is "apropos" which helps when your looking for a command but can't quite remember how it's spelled. If your looking for help with wireless on your Linux box you would type;

apropos wireless

This will give you a list of commands associtated with your wireless.

Another command I like is "locate." This finds a file, command, or directory and gives you the path to where it's at. First run the "updatedb" command as this updates the locate database. If locate finds many matches to your search run it with the "| less" command.
Reply With Quote
  #5 (permalink)  
Old 07-15-2008, 03:04 AM
Member
 
Join Date: Jun 2008
Posts: 31
Red face The IDee fashion jewelry!accompany women’ life-long beauty.

The IDee brand connotation: Individuality, nature, fashion, romantic, IDee fashion jewelry Individuality: advocates the freedom and unique individuality, but not lose the containsIDee fashion jewelry Nature: brief, but not lost the personal charm IDee fashion jewelry Fashion: the keen sense of newest popular tendency, and lead the fashion tendencyIDee fashion jewelry Romantic: source from France, the design brings you the French romanticism character and style[img][/img]Please view our website atIDee首饰批发,首饰加盟,银饰加盟,品牌首饰,星座首饰 to get a better idea of our products. We will be happy to give you a quotation upon receipt of your detailed requirements.
Reply With Quote
  #6 (permalink)  
Old 07-16-2008, 05:04 AM
Member
 
Join Date: Jul 2008
Posts: 77
Thumbs down Make shiitake mushroom extracts

The shiitake mushroom extracts, complementary medicine, an active fraction found in shiitake mushroom extracts which has shown anti-cancer ,I have read in the news that women with breast cancer should be taking anastrozole rather than tamoxifen,should I ask my doctor to change me to anastrozole ,proanthocyanidins (also known as oligomeric proanthocyanidins (OPC), is a class of flavonoids.Racecadotril is an antidiarrheal drug with an original mechanism of action: the inhibition of enkephalinase. Aphrodisiac properties of tribulus terrestris extract (Protodioscin) in normal and castrated rats.
__________________
Sell WoW Gold Here
Reply With Quote
  #7 (permalink)  
Old 07-16-2008, 01:36 PM
Member
 
Join Date: Jul 2008
Posts: 70
Wink tibet travel online

Booklet for Virgin Tour to TibetTraveling Tibet is most people’s dream in their life. However, some preparation is necessary for your virgin tour to Tibet. Tibet Travel|Tibet Tour|Tibet Tours|Tibet Train|Tibet Permit To every alien tourist, Tibet Entry permit is a primary. For Tibet Entry permit, TTB (Tibet Tourism Bureau) does not accept any individual to apply for Tibet Entry permit, but only travel agencies are allowed to apply Tibet Entry permit for alien tourist. At the same time, TTB (Tibet Tourism Bureau) forbids travel agencies to provide Tibet Entry permit only service. Tibet Entry permit must be sold with tour itinerary, tour guide, transportation and accommodation.Next is to make a proper tour itinerary for your virgin tour to Tibet. However, it is not an easy work. If you want to get a thorough understanding of Tibet, you have to have a great amount of time. A good tour itinerary for your virgin tour to Tibet is to cover some ordinary scenery spots. You could first travel around the capital city of Tibet Autonomous Region, Lhasa. The signature of Lhasa is the Potala Palace. At the same time, the Barkhor Street, the Jokhang Temple, the Norbulingka Garden, the Sera Monastery, and the Drepund Monastery are all the famous spots well worth visiting.Tibet Travel,Tibet Tours,Travel to Tibet,Tours to Tibet,Tibet Tour,Tibet Trekking,Tibet Trip,Eight years in tibetAfter the tour in Lhasa, three other ordinary tour itineraries are recommended:Firstly is the tour to Lake Namtso. The distance between Lake Namtso and Lhasa is not very far. However, if you want to do the tour within one day, you have to drive on for about 8 to 9 hours. But it is a good idea to overnight at the lake side enjoying the beautiful sunrise and sun set. Because the altitude of Lake Namtso is about 4700 meters, it will be a huge challenge to your health to have a night at Namtso. Second tour itinerary is from Lhasa to Nyingchi. Spending two days, you could finish the ordinary scenery spots such as the Basum Lake Scenic Zone. However, if you have one day more, you could go to the Lunang forest which is called the Swiss in Tibet. There, you could enjoy the tranquil holy mountain Namjagbarwa. Along the way to Lunang forest, you could have a close look at the Niyang River and the grandest Canyon, Brahmaputra Grand Canyon.Travel West China: Provider of Tibet, Sichuan, Yunnan, Qinghai, Xinjiang Tours in ChinaThe third tour itinerary is to the “World Third Pole” Mt. Everest. This tour itinerary will go from Shigatse and Tingri to Mt. Everest Base Camp. In Shigatse, you could visit Tashilungpo Monastery which is known as one of the four monasteries of Gelug Sect of Tibetan Buddhism and Zongshan Anti-British Battle Ruins in Gyantse. However, your final destination is the base camp of Mt. Everest. There, the splendid Mt. Everest will stand in front of you. Meanwhile, you could enjoy the sunrise at the Rongbu Monastery. What’s more, walk to Rongbu Monastery from Tingri will bring you much fun.These three tour itineraries are the good choice for your virgin tour to Tibet. If the train ticket to Tibet is available, taking the train to Tibet is the best choice. Sitting on the Tibet train, enjoying the unique scenery along the Qinghai-Tibet Railway and watching the Tibetan antelope will leave you unforgettable memory.Another psychological preparation for your Tibet tour is the lack of oxygen on high altitude. Different people have different high altitude reaction. However, one or two day acclimatization is necessary. Rest in the hotel, do not do serious sport and do not bathe are the way to acclimatize to the high altitude. If you got serious high altitude sickness, breath some pure oxygen is usually a common way to deal with it. But, do not overdo that. If you are addicted to the oxygen, you could not do without it on the high altitude. However, normally, one will get used to high altitude after half-day acclimatization.Tibet Travel|Tibet Tour|Tibet Tours|Tibet Train|Tibet Permit
Reply With Quote
  #8 (permalink)  
Old 07-17-2008, 02:24 AM
Junior Member
 
Join Date: May 2008
Posts: 21
Thumbs down 东莞货运公司

东莞物流东莞货运东莞物流公司东莞货运公司
__________________
空压机
Reply With Quote
  #9 (permalink)  
Old 07-29-2008, 07:36 PM
Junior Member
 
Join Date: Jul 2008
Posts: 28
Unhappy Replica watches with perfect imitation

Replica watches with perfect imitation Replicas Watch with perfect imitation We supply full rage of Fake Watch with perfect imitation such as Rolex watches, Breitling watches, Omega watch, Audemars Piguet, Chanel watches, IWC watches, Cartier watches, TAG Heuer watches, Rado fake watches, Longines watches, Patek Philippe watches and so on. You won't know it is a fake watches unless you let words out of your mouse. Every detail of these watches is high imitated with high technology that it's hardly to tell a replica or an original one. Fine workmanship to their accessories makes copied watches worthy. Buying a replica watch can definitely delight your life because when you own one of these watch your high-class status and elegant manners can be perfectly show in the modern society.
__________________
replica watches,replica watch
Reply With Quote
  #10 (permalink)  
Old 07-30-2008, 03:44 AM
Junior Member
 
Join Date: May 2008
Posts: 21
Unhappy There are gains for all our losses.

There are gains for all our losses. There are balms for all our pain: But when youth, the dream, departs It takes something from our hearts, And it never comes again. We are stronger, and are better, Under manhood's sterner reign: Still we feel that something sweet Followed youth, with flying feet, And will never come again. Something beautiful is vanished, And we sigh for it in vain; We behold it everywhere, On the earth, and in the air, But it never comes again!深圳翻译公司
__________________
空压机
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line: Network Tools Robi Linux Help 50 Yesterday 11:25 PM
Windows Command Line - Find the Info You Want Nathan Windows XP Help 44 Yesterday 01:30 PM
Command Line: Basics of Pipes and Redirection Nathan Linux Help 57 09-03-2008 12:24 AM


All times are GMT -8. The time now is 05:16 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0