Quantcast
Channel: Commands using fc sorted by votes
Browsing all 8 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

Which 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 Article

Image may be NSFW.
Clik here to view.

install 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 Article

Image may be NSFW.
Clik here to view.

Rapidly 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 Article

Image may be NSFW.
Clik here to view.

Which 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 Article


Image may be NSFW.
Clik here to view.

An 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 Article

Image may be NSFW.
Clik here to view.

Show 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 Article

Image may be NSFW.
Clik here to view.

This 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

Browsing all 8 articles
Browse latest View live




Latest Images