favourite linux commands/ programs
- sickgut
- Posts: 1156
- Joined: Tue 23 Mar 2010, 19:11
- Location: Tasmania, Australia in the mountains.
- Contact:
favourite linux commands/ programs
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?
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?
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 shws 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.
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 shws 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.
+1Flash wrote:I like tree. It does something that every file management program ought to do but none of them do.
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.
- Moose On The Loose
- Posts: 965
- Joined: Thu 24 Feb 2011, 14:54
Re: favourite linux commands/ programs
I find myself typing "find" "grep" and "sed" a fair amount.sickgut wrote:
What are your favourite linux commands/ programs?
I think grep is the one I use most often.
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
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
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
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
- sickgut
- Posts: 1156
- Joined: Tue 23 Mar 2010, 19:11
- Location: Tasmania, Australia in the mountains.
- Contact:
one day ill design a t-shirt that is called the "top" top.GustavoYz wrote:Screen, Viim, Centerim, htop, ifnet, rtorrent, dict...
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.
sickgut wrote:one day ill design a t-shirt that is called the "top" top.GustavoYz wrote:Screen, Viim, Centerim, htop, ifnet, rtorrent, dict...
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.
I liked this one...
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
Try doing that with nano--AFAIK, 90% of it is not available.
Not to start an editor war or anything
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
Not to start an editor war or anything
Use tab completion.starhawk wrote:...in CLI? I find myself consistently needing 'cd' and 'ls' to go somewhere and then make sure I spelled it right!
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>
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
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
- RetroTechGuy
- Posts: 2947
- Joined: Tue 15 Dec 2009, 17:20
- Location: USA
I regularly use "tree -idf" to produce a raw table of directories.Flash wrote:I like tree. It does something that every file management program ought to do but none of them do.
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]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]
find . -type dRetroTechGuy wrote:I regularly use "tree -idf" to produce a raw table of directories.Flash wrote:I like tree. It does something that every file management program ought to do but none of them do.
Similarly, I often use "find > listing.txt" to produce a file list (makes it easy to seach for various files on the syste.
Also prints hidden directories