Hot answers tagged

2

What is shell? In simple words, shell is a software which takes the command from your keyboard and passes it to the OS. So are konsole, xterm or gnome-terminals shells? No, they're called terminal emulators. They open a GUI to interact with the shell. You can think of them as a frontend to the shells. Different Shells There are different shells which ...


2

You can do this using the stat command. Here is a simple script which prints the filenames, with some allowances for embedded blanks: #!/bin/sh find $* -exec stat -f '%m %B %N' {} \; | \ awk '$1 == $2 { \ s=length($1)+length($2)+3; $0 = substr($0,s); print $0; }' The %m and %B are respectively the modified and birth times (which appear to be what ...


2

netpbm (brew install netpbm) can process xwd files, so you should be able to do the standard Unix X11 process: $ xwd -root -silent -out screen.xwd $ xwdtopnm < screen.xwd | pnmtojpeg > screen.jpg xwdtopnm: writing PPM file


1

The usual method is (writing from memory): NEWBACKUP=`date +%s` # or some other format cp -al "$OLDBACKUP" "$NEWBACKUP" rsync -aH --delete "$SOURCE" "$NEWBACKUP" Check out Easy Automated Snapshot-Style Backups with Linux and Rsync There is also a --link-dest option to rsync that I've never investigated properly.


1

Do not use apps that do not support Linux. "RMsrv Reboot" works great with starting and shutting off Linux.


1

The top command tries to report statistics since boot time when it only reports one set; if it's set to report on a loop basis (e.g. with the -d option), the first report is since boot, the second and thereafter are for the most recent loop period only.


1

You need to recreate the grub.cfg using the following command: grub2-mkconfig -o /boot/grub2/grub.cfg Or grub-mkconfig -o /boot/grub/grub.cfg


1

The shell is the program that runs in the terminal, that reads the commands you type and executes them. Unix and Unix-like operating systems today offer a choice between mostly the same set of shells, because these shells pre-date most of those operating systems. For further reading I recommend Evolution of shells in Linux (IBM) Edit to add information ...


1

The name of your Macintosh has been changed accidentally. What you see at the prompt at the terminal is a name assigned by your DHCP server with your MAC address appended. You can rename it by, Go to System Preferences and click on Sharing. Change the Computer Name. Once you have done that, reboot your Mac. A standard name may look like "Steve Jobs' ...


1

fs_usage shows information about file system usage (and related things). Given that, I suspect THROTTLED from fs_usage indicates it is disk access being throttled and not CPU (although THROTTLED is not clearly documented in the man page). OSX reduces I/O throughput of idle applications to give better performance to active ones (see this Ars article) so it's ...


1

To change the memory and file limits for the current shell, use ulimit (see: help ulimit). E.g. ulimit -Sn unlimited && ulimit -Sl unlimited To make it persistent, add above commands into your shell rc files (e.g. ~/.bashrc). For processes if you've reach the hard limit and you've got this error: ulimit: max user processes: cannot modify ...



Only top voted, non community-wiki answers of a minimum length are eligible