Terminal commands

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
delta71
Level 1
Level 1
Posts: 10
Joined: Sun Mar 21, 2010 5:12 am

Terminal commands

Post by delta71 »

I recently started using Terminal in my Mint and I find it really great to use. Now I'm looking all over the Net for the complete set of commands, but no luck so far.
I know very few, very basic commands like 'rm' , 'vi file.txt' etc. I could really use commands that deal with the networks and system stuff. Also, I need to know what a command is for. I know 'man <command>' describes the command's manual page, but is there anything else?

Another thing. Say I create a .txt file using 'vi file.txt', where does it actually get saved on disk? Is there any way of opening that location in a window, as in Windows?

pompom
Level 4
Level 4
Posts: 215
Joined: Mon Dec 14, 2009 2:27 am
Location: Komandorsky Archipelago, Kamchatka Peninsula

Re: Terminal commands

Post by pompom »

Welcome to Linux Mint!

First, you will need the essential guide to happy VIMing. Depending on preference there are several versions available (html, pdf, tex, etc.). See http://tnerual.eriogerg.free.fr/vim.html. Second, you may need to start your very own quick reference file to help you with the syntax. Some of the commands can get pretty labyrinthine very quickly. Don't forget to look up the commands which you need to avoid like the plague such as rm -r *.* (recursive delete all), the only time you want to recurse is when searching for your friend's cute girlfriend's phone number, thank you. Here's a link that will get you started. http://www.pixelbeat.org/cmdline.html You can open several files (or tabs if using 'tabe' or 'tabnew') 'vim file1 file2 file3', but they don't get saved until an explicit (:w) write. If you want a window use the gvim (graphical vim) command, but you probably need to run 'sudo apt-get install vim-full' if gvim doesn't cooperate with you. And finally don't just use the terminal, impress your girlfriend at the same time also 'sudo apt-get install yakuake'.

Cheers and Happy VIMing
"This is Linux. It gives you cute mascot and enough rope to hang yourself." --- Miquel van Smoorenburg

User avatar
RedWagon
Level 5
Level 5
Posts: 632
Joined: Tue May 26, 2009 6:41 pm

Re: Terminal commands

Post by RedWagon »

Now I'm looking all over the Net for the complete set of commands,
I don't think there is one giant list since the commands come from everywhere; there are some from your shell, some built into the kernel, distro specific commands and then the commands from all the programs you install. My system has 2,912 possible commands (hit tab-tab to see how many you have) and I only use a fraction of them. I think the best thing to do is kind of pick them up as you go, if you see something and you don't know what it does look it up. You also might want to check out some Linux books (I like the O'Reilley ones) or ebooks.
Say I create a .txt file using 'vi file.txt', where does it actually get saved on disk?
In your current working directory. If you just open a terminal and then run vi, you should be in your home (default directory for when you open a new terminal) and anything you save will be there. If you ran

Code: Select all

cd Desktop
vi file
then the file would be saved on your Desktop. Also note that the .txt isn't necessary in Linux, though it's good to remebmer to add the .txt before you send it to some Windows users (also don't try to turn in assignments in a .tar.gz :( ).
I know 'man <command>' describes the command's manual page, but is there anything else?
For a brief version you can run
command -h
or
command --help
depending on the program.

JAHGoVeg
Level 2
Level 2
Posts: 52
Joined: Wed Dec 16, 2009 12:20 am
Contact:

Re: Terminal commands

Post by JAHGoVeg »

I'm sorry i Couldn't Resist this i had to be able to use this :D

http://tinyurl.com/yex2tnz

it Will show you how to find some common linux commands. :D
Image
Image
JAHGoVeg
Jose Hernandez
p.s. go easy on me I'm new to mint and only 16 yrs old. :wink:

User avatar
vrkalak
Level 12
Level 12
Posts: 4416
Joined: Mon Jul 20, 2009 5:53 pm
Location: Santa Fe, NM, USA

Re: Terminal commands

Post by vrkalak »

Have to add my 2-cents worth. :P


An A-Z Index of the Command Line for Linux >> http://ss64.com/bash/
A Directory of Linux -- Terminal Commands >> http://www.oreillynet.com/linux/cmd/
Image
:: Debian-Sid (Xfce/Fluxbox) :: LinuxMint-18 (LTS) LXDE w/Openbox ::
Registered Linux User: #497031 :: My DeviantART Page

Post Reply

Return to “Newbie Questions”