Page 1 of 2

favourite linux commands/ programs

Posted: Tue 24 Apr 2012, 14:23
by sickgut
I personally love the linux dd command and the nano text editor.

the amount of cool things you can do with dd is amazing, and to think windows users generally need to rely on programs like ghost and others to copy or backup entire hdds including the working OS etc. We have that capability in linux with a simple command issued at the terminal with no need of a desktop environment or a mouse pointer at all.

nano is so cool, finally proper text editing that doesnt require you to suffer a brain structural collapse when you need to edit a text or conf file when a desktop environment isnt loaded. The earlier text editors like Vi and others needed you to use strange commands to goto a new line etc or delete something etc etc.... I think nano with its ability to let the user use the arrow/ cursor keys to move around just like in windows notepad finally made the linux console accessible to newbie level users.

What are your favourite linux commands/ programs?

Posted: Tue 24 Apr 2012, 14:35
by Flash
I like tree. It does something that every file management program ought to do but none of them do.

Posted: Tue 24 Apr 2012, 16:03
by postfs1
1."mount", because this is a big sign by my opinion, and also because this is a known door to some computer devices.

2.A good software manager with a big support, maybe as the "synaptic".

3."geany". This text editor has a noticeable design.

4."mplayer" with "mencoder" and with "smplayer", because this product gives an opportunity to watch, to record and to edit the multimedia works.

5."wine", because due to such a product i have an opportunity to install the "ImgBurn" program.

6."NVidia-driver-installer", even if this is a restricted, nonfree product, because this product gives more forces to my "GeForce".

7.A program which shImagews a background picture on the desktop.

8."gimp", "blender", "inkscape". Environments where the painting can grow.

9."audacity", "zynaddsubfx", "hydrogen". Environments where the sound can grow.

10."mc", "curl" plus "md5sum" plus "cat" plus "echo" plus "grep" plus "yaf-splash" plus "xmessage". Importance of successful moving of files is noticeable.

11."iptables" with "fwbuilder" and with "dmesg". If there is a need to find the road to firewall and to observe the road which was found.

12."lame -b ??? -h". A light program with an useful options.

Posted: Tue 24 Apr 2012, 16:57
by jpeps
Flash wrote:I like tree. It does something that every file management program ought to do but none of them do.
+1

I've included tree in scripts like my sfs file checker, etc. Very useful. The last time I checked mencoder, it needed about seven uninstalled libs.

Re: favourite linux commands/ programs

Posted: Wed 25 Apr 2012, 00:41
by Moose On The Loose
sickgut wrote:
What are your favourite linux commands/ programs?
I find myself typing "find" "grep" and "sed" a fair amount.

I think grep is the one I use most often.

Posted: Wed 25 Apr 2012, 01:20
by lwill
Except for Puppy - "su" :D

Posted: Wed 25 Apr 2012, 03:02
by rokytnji
1. locate (has to installed in Puppy) http://www.murga-linux.com/puppy/viewtopic.php?t=74181
2.which
3. inxi -z -F (has to be installed in Puppy) http://murga-linux.com/puppy/viewtopic.php?t=53986
4.ffmpeg (has to be installed in some Puppies)http://puppylinux.org/wikka/ffmpeg
5. pianobar (has to be installed in Puppy) https://github.com/PromyLOPh/pianobar
6. grep

Code: Select all

# grep "MemTotal" /proc/meminfo
MemTotal:         504408 kB
7. cat /etc/DISTRO_SPECS
8. df -h (space taken)
9. cc (after installing devx)
10. cp (copy files)
11. ldd http://puppylinux.org/wikka/ldd

http://puppylinux.org/wikka/BashCommands

Posted: Wed 25 Apr 2012, 10:54
by bignono1
format c:\

Posted: Wed 25 Apr 2012, 14:29
by GustavoYz
Screen, Vim, Centerim, htop, ifnet, rtorrent, dict...

Posted: Wed 25 Apr 2012, 17:20
by sickgut
GustavoYz wrote:Screen, Viim, Centerim, htop, ifnet, rtorrent, dict...
one day ill design a t-shirt that is called the "top" top.

ie the "top" command, the tshirt would have the output of top on it with all the processes of whatever linux system...

and ofcause tshirts are called tops, so this would be a top top.

Posted: Thu 26 Apr 2012, 00:06
by Bligh
I avoid the cli if I possibly can. the only self inflicted damage done to my computers was with the cli in dos. I haven't used it since I got xtree.
Cheers

Posted: Thu 26 Apr 2012, 16:56
by GustavoYz
sickgut wrote:
GustavoYz wrote:Screen, Viim, Centerim, htop, ifnet, rtorrent, dict...
one day ill design a t-shirt that is called the "top" top.

ie the "top" command, the tshirt would have the output of top on it with all the processes of whatever linux system...

and ofcause tshirts are called tops, so this would be a top top.
:D
I liked this one...

Posted: Thu 26 Apr 2012, 17:52
by starhawk
...in CLI? I find myself consistently needing 'cd' and 'ls' to go somewhere and then make sure I spelled it right!

Supposin' I'm still a n00b at this stuff...

Posted: Thu 26 Apr 2012, 18:05
by Ibidem
In the order I think of them:
1. lsof: allows viewing all files opened by programs
Combine with grep to get something a little better than ldd (check all files opened, all libraries loaded after plugins are loaded, ...)
2. strace: great for debugging stuff (especially when you go grep 'open(' or look at TCP connections...)
3. nethogs: somewhat top-like list of network usage by application name, showing usage in kilobytes, megabytes, ...
4. sed (especially the -i flag):
grep -lr pattern1 ./|xargs sed -e 's/pattern2/pattern3/g' -i
5. grep...refer to the above
6. mpg123: for playing audio, what else?
potential use: curl http://example.com/some.mp3|busybox tee some.mp3 |mpg123 -
Also great to hook up with at for an alarm
Download and play, all at once!
7. wpa_cli & wpasupplicant: Command line tool to connect to ANY network. Also, wireless-tools (esp. iwmulticall)
8. mutt: for email.
9. incron: Like cron, but using filesystem changes/events as triggers instead of time specifications. Handy for auto-backup stuff, if you know what you're doing.
10: dosemu: The name says it all. Great for stuff like VDE (the Visual Display Editor, which is more of a wordprocessor now) and OpenGEM/FreeGEM/GEM-XM
11: links2/links/elinks and lynx: CLI browsers. I don't mention w3m because navigation seems a bit worse there. Some of these support JS to a degree.
12: fbtv if you can get it working.
13: vpnc for Cisco VPNs...

Finally: (g)vim. No bones about it, I find it nice to go

Code: Select all

:1046
A<edit><esc>
:w
:make clean
:make target2
[scroll through messages, enter, dumped on exactly the right line most of the time]
<edit><esc>
:w
:vsplit file2.c
:%s/name1/name2/gc
<confirm each replacement you want to make>
:w
:close
:e newfile
:.!ls -R
:xa
Try doing that with nano--AFAIK, 90% of it is not available.
Not to start an editor war or anything :roll: ;)

Posted: Thu 26 Apr 2012, 19:20
by linuxbear
This one is not recommended: rm -rf /root

Posted: Sun 06 May 2012, 23:15
by Ibidem
starhawk wrote:...in CLI? I find myself consistently needing 'cd' and 'ls' to go somewhere and then make sure I spelled it right!
Use tab completion.
So you go

Code: Select all

$ cd som<tab><tab>
somabc
somefile
somewhere/
[then displays prompt with exactly what you typed up to the tab]
$ cd somew<tab>here/<tab><tab>
[lists contents of directory]
$ cd somewhere<enter>
Tab completion is great--it won't work if you make typos, and it won't make them for you.

Posted: Mon 07 May 2012, 15:38
by tallboy
Lynx, for superfast navigation up and down through a hierarchy of directories and files, using the arrow-buttons on the keyboard only, and opening a file by just clicking the 'right' button. In later debian versions it's named Lynx-cur, I use it in my dpups. It has a massive config file, for those who like to play with their linux...

Pinfo, not in use in puppy, but a Lynx-type browser of 20-25 Mb of info-files in my Debian-box. If you run some major distro, try 'pinfo libc'!

l (small L) is my alias for 'ls -hov'. I use it all the time when I work in a terminal window. It's only a refined version of ls -l.

mkdir Again a problem in puppy because of the 'light' version of utilities used in puppy don't recognize the -v (for 'verbose') option that let you see what is being performed by your command. The complete command I use: mkdir -vp

# mkdir -p level-one/level-two/level-three/A,B,C

# lr level-one (lr is an alias for ls -Rhov)
level-one:
total 0
drwxr-xr-x 3 root 60 May 7 17:00 level-two

level-one/level-two:
total 0
drwxr-xr-x 3 root 60 May 7 17:00 level-three

level-one/level-two/level-three:
total 0
drwxr-xr-x 2 root 40 May 7 17:00 A,B,C

level-one/level-two/level-three/A,B,C:
total 0

I usually add a cd to the command: mkdir -vp 'dirs'; cd 'some dir'

tallboy

Posted: Mon 07 May 2012, 15:48
by RetroTechGuy
Flash wrote:I like tree. It does something that every file management program ought to do but none of them do.
I regularly use "tree -idf" to produce a raw table of directories.

Similarly, I often use "find > listing.txt" to produce a file list (makes it easy to seach for various files on the system).

And another favorite is "md5deep".

Posted: Mon 07 May 2012, 21:01
by jpeps
RetroTechGuy wrote:
Flash wrote:I like tree. It does something that every file management program ought to do but none of them do.
I regularly use "tree -idf" to produce a raw table of directories.

Similarly, I often use "find > listing.txt" to produce a file list (makes it easy to seach for various files on the syste.
find . -type d

Also prints hidden directories

Posted: Mon 07 May 2012, 21:09
by 01micko
ls

-with or without options, often piped to grep