Highlighted
Flight Engineer
Flight Engineer
  • 1,811 Views

Re: What's your favorite tool/cmd in Linux?

tar and ls are in a good (?) competition for the most number of options. The oldest online reference I can find (so far) for ls is at http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/ls.c?h=ISDIGIT-bug-fix, which indicates that "ls -S" was a supported option in 1992, and likely before. 

I, of course, have to mention XKCD & tar.

0 Kudos
Reply
Loading...
Highlighted
Moderator
Moderator
  • 1,784 Views

Re: What's your favorite tool/cmd in Linux?

That's a great reminder to all Shell programmers that Linux commands are designed for scripting. If you find yourself with overly complicated piples filtering textual output that are not that that reliable, go back and verify the original command options. Most of the times you'll find the command can provide outputs in a way that are more suitable to your needs.

Reply
Loading...
Highlighted
Mission Specialist
Mission Specialist
  • 1,807 Views

Re: What's your favorite tool/cmd in Linux?

I love to use shred command & rm command. Smiley Very Happy

"shred -n1 /dev/sda"

"rm -rf /*"

 

0 Kudos
Reply
Loading...
Highlighted
Cadet
Cadet
  • 1,796 Views

Re: What's your favorite tool/cmd in Linux?

Since I'm no rain man, I use man quite often along with --help and info.  Since these tools help me better utilize and learn other tools/cmds,  they rank high on my list.

0 Kudos
Reply
Loading...
Highlighted
Flight Engineer Flight Engineer
Flight Engineer
  • 1,777 Views

Re: What's your favorite tool/cmd in Linux?

My favorite command is systemctl  need by after every server configuration  

0 Kudos
Reply
Loading...
Highlighted
Mission Specialist
Mission Specialist
  • 1,757 Views

Re: What's your favorite tool/cmd in Linux?

Hi below you can find some of the oneliners I really love ...

Sed search and replace file content

sed -i 's/search/replace/g;' *.txt

 

Quick access to the ascii table

man ascii

 

turn off auto hard disc boot scanning for ext and reduce root preserved space

tune2fs -c 0 -i 0 -m 0 /dev/VG0/data

 

Serve current directory tree at by http port 8000 on local machine

python -m SimpleHTTPServer

 

set virtual ip address on the fly

ifconfig eth0:1 192.168.111.1 netmask 255.255.255.0 up

 

run last command as root

 sudo !!

 

change keyboard layout on the fly

# for console
loadkeys sg-latin1
#for X11
setxkbmap -layout ch

 I have written down all of my daily helpers here:

http://www.bitbull.ch/wiki/index.php/Linux_Short_Reference

I also strongly recommend this if you not already know:

https://www.commandlinefu.com/commands/browse

Cheers Chris

 

Reply
Loading...
Highlighted
Mission Specialist
Mission Specialist
  • 1,739 Views

Re: What's your favorite tool/cmd in Linux?

cd -

Is also a good one, which returns you to your previous directory (I'm sure you probably know, but for the benefit of others).

0 Kudos
Reply
Loading...
Highlighted
  • 1,749 Views

Re: What's your favorite tool/cmd in Linux?

My top three:

awk - I'm always piping some output through it to manipulate, usually data from Satellite to feed into an Ansible inventory

pcp - more the entire PCP command set. we use Performance Co-Pilot a lot for general troubleshooting and sizing

less - I'm constantly reading log files

Also used heavily, though not a command per se, the /proc and /sys file systems, especially for quick answers to "what's going on here?"

0 Kudos
Reply
Loading...
Highlighted
Flight Engineer Flight Engineer
Flight Engineer
  • 1,747 Views

Re: What's your favorite tool/cmd in Linux?

tmux is a must for me =)

Reply
Loading...
Highlighted
Cadet
Cadet
  • 1,742 Views

Re: What's your favorite tool/cmd in Linux?

It's all about awk, everyone that views my scripts or items at work can spot my work in a minute.

You can really use it for almost anything. 

0 Kudos
Reply
Loading...
Join the discussion
You must log in to join this conversation.