Edit the last or previous command line in an editor then execute
$ fc [history-number] If you would like to edit a previous command, which might be long and complicated, you can use the fc (I think it stands for fix command). Invoke fc alone will edit the last...
View ArticleWhich fonts are installed?
$ fc-list | cut -d ':' -f 1 | sort -u See all fonts installed in your system View this command to comment, vote or add to favourites View all commands by kayowas by David Winterbottom (codeinthehole.com)
View Articleinstall package which provides some libraries in fedora
$ yum whatprovides /usr/lib/libXX1.so /usr/lib/libXX2.so | grep fc | sed 's/^\(.*\)-[0-9.]*-.*$/\1/' | sort | uniq | xargs yum -y install this command will install the packages which provides the...
View ArticleRapidly invoke an editor to write a long, complex, or tricky command
$ fc View this command to comment, vote or add to favourites View all commands by deshawnbw by David Winterbottom (codeinthehole.com)
View ArticleWhich fonts are installed?
$ fc-list | cut -d':' -f2 | sort -u List all font names installed in the system. Useful for TeX. View this command to comment, vote or add to favourites View all commands by smarx Diff your entire...
View ArticleAn alias to re-run last command with sudo. Similar to "sudo !!"
$ alias please='sudo $(fc -ln -1)' I didn't come up with this myself, but I always add this to my .bash_aliases file. It's essentially the same idea as running "sudo !!" except it's much easier to...
View ArticleShow your font name list
$ fc-query ./fonts/* | grep "family:" | cut -d '"' -f 2 | sort -u View this command to comment, vote or add to favourites View all commands by kokoye2007 Diff your entire server config at ScriptRock.com
View ArticleThis will take the last two commands from bash_history and open your editor...
$ fc -1 -2 View this command to comment, vote or add to favourites View all commands by wuziduzi Diff your entire server config at ScriptRock.com
View Article
More Pages to Explore .....