Tag Info

New answers tagged

0

This gives you those who were seen from the 'last' command in a file called 'last.txt'. last | cut -f1 -d' ' | uniq | sort | grep -v reboot | grep -v wtmp | egrep -v "^$" > last.txt This gives you those all users on the system in a file called 'passwd.txt'. cat /etc/passwd | cut -f1 -d: | uniq | sort > passwd.txt Interpreted correctly this gives ...


3

Keep in mind that there is more than one implementation of mv. The mv you use on linux is not from the exact same source as the one on OSX or Solaris, etc. But it is desirable for them all to behave in the same way -- this is the point of standards. It's conceivable that a mv implementation could add an option for this purpose, although since it is so ...


2

Use tar xf -. The - is a placeholder for standard input.



Top 50 recent answers are included