![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
The Community Cafe The Community Chat area is for lighthearted and enjoyable discussions, like you might find around a water cooler at work. Almost any non-tech-support topic may be discussed here. Discussions on religion and politics are not allowed, except for politics directly related to free and open source issues. Any topic or discussion that causes problems or drama will be closed. This area is intended for fun and community building, not arguments. Please take those elsewhere. Thanks! |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Gee! These Aren't Roasted!
![]() |
What are your most used CLI Commands
I am working on a new project comparing Linux (Ubuntu is my choice there) with OpenSolaris. There are a whole lot of similarities, but as a new user of Solaris, I can attest that there are enough differences to make starting a new Solaris implementation a run to the instruction manuals.
On Ubuntu, I use the following commands pretty regularly, and I want to have a small notebook of the commands that would do what I am used to doing in Linux and some man-page detail and the commands in Solaris as well. I want to de-geek the man pages a little, since most of the people I am working with right now are students, and the shorthand we know and love is confusing for newbies. I would like to be able to hand this out to a 1st-year IT student and have them be able to get a little more out of it than they do from man pages. I had a lot of trouble in the beginning, sorting out which parts of the commands are which, and I see this tendency in others as well. I know, for instance, that the application package manager for Solaris is called packageadd, and that correlated to dpkg. Solaris zfs has some features that are not available in ext3. I have heard there is an ext4 file system out there, but I have not seen it yet (I read it was going to appear in Fedora9). If you were going to do this project, what would your top 25 commands be? I know some of these below are not core-utils, but they are the things I use. Code:
wolf@prospero:~$ [Tab][Tab] #lists all available man pages Display all 3067 possibilities? (y or n) Code:
ls # for directory reading cd # changing directories mkdir # to make directories rm # to remove files and empty directories rm -R # to remove non-empty directories (this is one of the dangerous commands touch # to make files and update the "last accessed" point ./ #to run executables (like 'configure') echo # to write something to display uname -a # to check on what kernel I am running, so I can tell the forum support my details (if something were to go wrong. chmod # change permissions on files vi # text editing (it is ugly, but it is available on all unmodified unices that I have ever seen) /usr/bin/bash # to run scripts locate # to find files anywhere in the whole filesystem which # to see 'which' application is the default. You could have several copies of an application on the machine, but there is one that is used by default. perl # to run perlscripts grep # to search for files cat # to search for contents of files sudo # to act as root (or a sudoer) ping # to check if an IP or domain name is live (or at least accepting ICMP Packets) I know it's old-fashioned, but ping is more useful that a browser message "page cannot be found." reboot # to reboot the machine startx # to open a GUI session from TTY1 Terminal-only mode. sudo dpkg --configure -a # to fix broken packages. dpkg -i # to install downloaded debian packages. alien # to change rpm packages to debian ones so I can use dpkg -i to install them. apt-get # to download application packages from a repo aptitude # to download application packages from a repo, too. Aptitude does a better job than apt-get solving dependency problems, AND has an ncurses graphical control panel that is useful when you are in a CLI-only situation. valgrind # to run debugging traces on unhappy applications. ssh # to connect to non-local servers securely. Transparency Disclaimer: My plan with this project is to license the output as as creative commons license similar to http://www.gp-field-guide.org.uk/ or with some other license that is in line with the GPL, and the spirit of Open-Source, so people who are interested can download it for free and Print-on-Demand copies can be purchased at a nominal fee. If you are interested in being part of this documentation project, let me know. My email is Wolf@HSI-US.com
__________________
Wolf Halton - Open-Source and Data Center Consulting --> some **Dangerous Commands** This Apt Has Super Cow Powers! -"Have you mooed today?"
|
|
|
|
|
|
#3 |
|
Just Give Me the Beans!
![]() Join Date: Feb 2007
Beans: 60
|
Re: What are your most used CLI Commands
I don't see head nor tail in there
Code:
head # to view the top lines in a file tail # to view the last lines in a file - so useful for logs! Code:
apt-cache # search through application packages sed # to replace text in a file watch # to view the periodically updated contents of a file
__________________
[after several minutes on the phone with tech support] "does the outlet have power?" "well, there's a power outage right now" click |
|
|
|
|
|
#4 |
|
Gee! These Aren't Roasted!
![]() |
Re: What are your most used CLI Commands
I use everything you've mentioned without `alien`, `valgrind`, `perl` and `aptitude`
PS: Oh, and I use `vim` instead of `vi` Edit: and `find` too Last edited by LinuX-M@n1@k; April 15th, 2008 at 11:59 AM.. |
|
|
|
|
|
#5 |
|
Gee! These Aren't Roasted!
![]() |
Re: What are your most used CLI Commands
I have put a note on the OpenSolaris site to check interest level there.
I guess I use Code:
top # to watch the processes occasionally as well
__________________
Wolf Halton - Open-Source and Data Center Consulting --> some **Dangerous Commands** This Apt Has Super Cow Powers! -"Have you mooed today?"
|
|
|
|
|
|
#6 |
|
Gee! These Aren't Roasted!
![]() Join Date: Jun 2006
Beans: 170
Ubuntu Karmic Koala (testing)
|
Re: What are your most used CLI Commands
At the moment I'd say... man
|
|
|
|
|
|
#7 | |
|
5 Cups of Ubuntu
![]() Join Date: Mar 2007
Location: South Wales
My beans are hidden!
Kubuntu 8.04 Hardy Heron
|
Re: What are your most used CLI Commands
Quote:
Code:
head $(ls | grep foto) Code:
mv fotowall.{pro,pro2}
|
|
|
|
|
|
|
#8 |
|
Girls can be geeks too!
![]() |
Re: What are your most used CLI Commands
Please see the top 10 used terminal commands thread
__________________
LinuxChix | Linux User #432169 | Ubuntu User #8495 | IRC: maco @ irc.linuxchix.org or irc.freenode.net #ubuntu-audio-help can be useful for sound issues ![]() |
|
|
|
|
|
#9 |
|
Dipped in Ubuntu
![]() Join Date: Jul 2006
My beans are hidden!
|
Re: What are your most used CLI Commands
fairly certain "ls", "cd", and "exit" would be the main 3 for most users.
__________________
Automated printing of the daily crossword |
|
|
|
|
|
#10 |
|
Day Old Decaf
![]() |
Re: What are your most used CLI Commands
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|