favourite linux commands/ programs

For stuff that really doesn't have ANYTHING to do with Puppy
Message
Author
User avatar
sickgut
Posts: 1156
Joined: Tue 23 Mar 2010, 19:11
Location: Tasmania, Australia in the mountains.
Contact:

favourite linux commands/ programs

#1 Post 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?
User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post by Flash »

I like tree. It does something that every file management program ought to do but none of them do.
postfs1

#3 Post 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.
Last edited by postfs1 on Thu 02 May 2013, 11:36, edited 6 times in total.
jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#4 Post 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.
User avatar
Moose On The Loose
Posts: 965
Joined: Thu 24 Feb 2011, 14:54

Re: favourite linux commands/ programs

#5 Post 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.
User avatar
lwill
Posts: 171
Joined: Fri 13 Jun 2008, 04:00
Location: City Of Lights
Contact:

#6 Post by lwill »

Except for Puppy - "su" :D
rokytnji
Posts: 2262
Joined: Tue 20 Jan 2009, 15:54

#7 Post 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
User avatar
bignono1
Posts: 360
Joined: Sun 17 May 2009, 07:30
Location: Q8

#8 Post by bignono1 »

format c:\
User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#9 Post by GustavoYz »

Screen, Vim, Centerim, htop, ifnet, rtorrent, dict...
Last edited by GustavoYz on Thu 26 Apr 2012, 16:33, edited 1 time in total.
User avatar
sickgut
Posts: 1156
Joined: Tue 23 Mar 2010, 19:11
Location: Tasmania, Australia in the mountains.
Contact:

#10 Post 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.
Bligh
Posts: 480
Joined: Sun 08 Jan 2006, 11:05
Location: California

#11 Post 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
User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#12 Post 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...
starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#13 Post 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...
Ibidem
Posts: 549
Joined: Wed 26 May 2010, 03:31
Location: State of Jefferson

#14 Post 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: ;)
linuxbear
Posts: 620
Joined: Sat 18 Apr 2009, 20:39
Location: Las Vegas, Nevada, USA

#15 Post by linuxbear »

This one is not recommended: rm -rf /root
Ibidem
Posts: 549
Joined: Wed 26 May 2010, 03:31
Location: State of Jefferson

#16 Post 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.
User avatar
tallboy
Posts: 1760
Joined: Tue 21 Sep 2010, 21:56
Location: Drøbak, Norway

#17 Post 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
User avatar
RetroTechGuy
Posts: 2947
Joined: Tue 15 Dec 2009, 17:20
Location: USA

#18 Post 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".
[url=http://murga-linux.com/puppy/viewtopic.php?t=58615]Add swapfile[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]
jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#19 Post 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
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#20 Post by 01micko »

ls

-with or without options, often piped to grep
Puppy Linux Blog - contact me for access
Post Reply