Tag Info

Hot answers tagged

11

From the Surfraw website: Surfraw provides a fast unix command line interface to a variety of popular WWW search engines and other artifacts of power. It reclaims google, altavista, babelfish, dejanews, freshmeat, research index, slashdot and many others from the false-prophet, pox-infested heathen lands of html-forms, placing these wonders where they ...


5

Lynx is actively maintained, but mostly for bug fixes. The last release of Links 2 was on 2011-08-10. The elinks fork still has an active developer mailing list with occasional bug fixes, but hasn't seen a release since 2009. W3m is actively maintained, though no major feature has been added in several years. The latest version is w3m 0.5.3 released on ...


4

Assuming you are using something like Gnome, Xfce or some compliant desktop environment; a good alternative is to create a .desktop file. For example unix_stackexchange_com.desktop with the following contents: [Desktop Entry] Version=1.0 Name=Unix & Linux Comment=Link to Unix & Linux. Exec=google-chrome http://unix.stackexchange.com Terminal=false ...


4

Hard links. That's the only type for which its even possible to count. Pretty much every find option is something fairly trivially obtained for each file; the hard link count comes from stat (and is also displayed by ls, by the way). (To count symlinks, you'd have to examine every symlink and check where it points. But that's not even possible—symlinks can ...


3

There are 28 files, including directories. ls / | wc -l includes the "total" line but not the . and .. directories, so your 27 becomes 28. Subtract initrd.img, initrd.img.old, vmlinuz, and vmlinuz.old, since they aren't directory links (they're regular files or symlinks), making 24.


2

If the given file is called /path/to/file and you want to find all hard links to it that exist under the current directory, then use: find . -samefile /path/to/file The above was tested on GNU find. Although -samefile is not POSIX, it is also supported by Mac OSX find and FreeBSD find. Documentation From GNU man find: -samefile name ...


1

As the other answer states, there is no simple task to do that. You have to search the whole filesystem. Here is an approach: find / -type l -ls 2>/dev/null | grep -P " -> .*HORCM$" It uses find to search all links, then prints them in a form like ls -dils. At the end, the complete output is grepped for the folder you search. It may take a while to ...


1

There's no way of knowing what symbolic links exist that point to a particular directory or whatever, besides simply searching through the entire filesystem for symbolic links and checking what those links point to.


1

You need the actual library for the ld to link. The headers are only required for the compilation, not the linking. It will be looking for a file called libOpenCL.so in your library path. From the ld manpage: -l namespec --library=namespec Add the archive or object file specified by namespec to the list of files to link. This option may ...


1

I assume you are not running X. This means you have no native clipboard support. There are several ways to use a clipboard in terminal applications. The difference to GUI applications is that they cut and paste operation is not performed from within the application. Instead it is done using a different program. 1) One way is to start the brower in tmux and ...


1

A link to a website isn't exactly possible if you're trying to go the hardlink/symlink route. What you can do, and I found this suggestion here, is to create a simple script that can be executed. #!/bin/sh x-www-browser 'http://www.example.com/your/link'



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