似乎我只能使用 chrome 和 firefox 等资源管理器下载 dropbox 文件。如果我使用 wget 下载,那么我会得到一个 html 格式的文件。为什么?
例如你可以打开这个链接
https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt > 使用资源管理器,但如果您使用
wget https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt
Run Code Online (Sandbox Code Playgroud)你不会得到这个文件的内容,为什么?下面是test.txt的一部分下载,这根本不是test.txt的内容。
那么是否可以使用wget资源管理器而不是资源管理器下载 Dropbox 文件?
document.observe('script:loaded', function() {
SharingModel.init('test\x2etxt', Util.from_json('\x7b\x22item\x5fid\x22\x3a\x20\x22\x22\x2c\x20\x22secure\x5fhash\x22\x3a\x20\x22\x22\x2c\x20\x22subpath\x22\x3a\x20\x22\x22\x2c\x20\x22tkey\x22\x3a\x20\x22mx9eqve5l2ipgyk\x22\x7d'))
SharingModel.init_file()
$('emsnippet-9911dfc627e1d541').innerHTML = 'test\x2etxt'.em_snippet(50, 0.750).escapeHTML();
$('emsnippet-add7879f5d805012').innerHTML = 'test\x2etxt'.em_snippet(20, 0.750).escapeHTML();
$('emsnippet-981ac0639529f983').innerHTML = 'test\x2etxt'.em_snippet(20, 0.750).escapeHTML();
FilePreview.init_text('https\x3a\x2f\x2fdl\x2edropbox\x2ecom\x2fs\x2fmx9eqve5l2ipgyk\x2ftest\x2etxt', 0) });
} else if (window.jQuery) {
jQuery(function () {
SharingModel.init('test\x2etxt', Util.from_json('\x7b\x22item\x5fid\x22\x3a\x20\x22\x22\x2c\x20\x22secure\x5fhash\x22\x3a\x20\x22\x22\x2c\x20\x22subpath\x22\x3a\x20\x22\x22\x2c\x20\x22tkey\x22\x3a\x20\x22mx9eqve5l2ipgyk\x22\x7d'))
SharingModel.init_file()
$('emsnippet-9911dfc627e1d541').innerHTML = 'test\x2etxt'.em_snippet(50, 0.750).escapeHTML();
$('emsnippet-add7879f5d805012').innerHTML = 'test\x2etxt'.em_snippet(20, 0.750).escapeHTML();
$('emsnippet-981ac0639529f983').innerHTML = 'test\x2etxt'.em_snippet(20, 0.750).escapeHTML();
FilePreview.init_text('https\x3a\x2f\x2fdl\x2edropbox\x2ecom\x2fs\x2fmx9eqve5l2ipgyk\x2ftest\x2etxt', 0) });
}
Run Code Online (Sandbox Code Playgroud)
我无法使用命令获取 test.txt
wget https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.tx
ls -l
-rw-rw-r-- 1 mirror …Run Code Online (Sandbox Code Playgroud) 例如我可以很容易地找到属于 mlocate.i386 包的 locate 命令。
yum search locate
mlocate.i386 : An utility for finding files by name
[mirror@home /]$ rpm -qa | grep locate
mlocate-0.15-1.el5.1
yum search updatedb
Loaded plugins: fastestmirror, protectbase
0 packages excluded due to repository protections
=========================================== Matched: updatedb ===========================================
mlocate.i386 : An utility for finding files by name
Run Code Online (Sandbox Code Playgroud)
但是要找到哪个 package free 命令并不那么容易:
yum search free // this command just returns too much informationy
rpm -qa | grep free
freetype-2.2.1-31.el5_8.1 // obviously not the package by which …Run Code Online (Sandbox Code Playgroud) 一个 Linux 用户可以属于多个组吗?
如果允许,那么一个用户可以访问来自两个组的文件,那就太好了!
如果没有,有没有其他方法可以使用此功能?
该locate命令在Linux 上是非常有用的工具,但似乎只有root 才能运行updatedb命令,使用起来非常不方便。那么如何让普通用户拥有运行updatedb命令的权限呢?
updatedb 是用于更新 locate 命令使用的数据库的命令。
但是尝试以普通用户身份运行updatedb时出现以下错误信息:
[mirror@home code]$ updatedb
updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'
Run Code Online (Sandbox Code Playgroud)
或者:
updatedb -o db
updatedb: can not change group of file `/var/lib/gforge/chroot/home/users/bigmeow/tmp/db.uhEZFQ': Operation not permitted
Run Code Online (Sandbox Code Playgroud) make 然后失败了:
配置:错误:没有找到 termcap 库,但是 termcap 库就在那里,为什么找不到它?
checking for library containing zlibVersion... -lz
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for library containing dlgetmodinfo... no
checking for iconv... yes
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for library containing waddstr... no
configure: WARNING: no enhanced curses library found; disabling TUI
checking for library containing tgetent... no
configure: error: no termcap …Run Code Online (Sandbox Code Playgroud) pmap显示 Dropbox 使用近 200MB 的内存(在 Linux 上)。当我在 Windows 上运行 Dropbox 时,它只使用大约 30MB 的内存。这是什么原因?
另外,为什么[ anon ]根据 pmap 输出有这么多范围占用这么多内存?
[mirror@home Dropbox]$ pgrep dropbox
9544
9544: /home/mirror/.dropbox-dist/dropbox
08048000 3028K r-x-- /home/mirror/.dropbox-dist/dropbox
0833d000 248K rw--- /home/mirror/.dropbox-dist/dropbox
0837b000 52K rw--- [ anon ]
08c20000 15688K rw--- [ anon ]
ad052000 1028K rw--- [ anon ]
ad1d4000 1024K rw--- [ anon ]
ad3d4000 1024K rw--- [ anon ]
ad5d4000 4K ----- [ anon ]
ad5d5000 10240K rw--- [ anon ]
adfd5000 4K …Run Code Online (Sandbox Code Playgroud) 我不是 root,所以我必须从源代码构建 rtorrent 并希望将它安装在我的主目录中,但它失败了,为什么?
[mirror@hugemeow rtorrent]$ ls
AUTHORS autogen.sh ChangeLog configure.ac COPYING doc INSTALL Makefile.am NEWS rak README scripts src test
[mirror@hugemeow rtorrent]$ ./autogen.sh
aclocal...
aclocal:configure.ac:7: warning: macro `AM_PATH_CPPUNIT' not found in library
autoheader...
libtoolize... using libtoolize
automake...
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
src/Makefile.am: installing `./depcomp'
autoconf...
configure.ac:7: error: possibly undefined macro: AM_PATH_CPPUNIT
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
Run Code Online (Sandbox Code Playgroud)
尽管 autoge 失败,但配置脚本已创建。
[mirror@hugemeow rtorrent]$ ls
aclocal.m4 autogen.sh ChangeLog config.h.in configure …Run Code Online (Sandbox Code Playgroud) # cat /proc/version
Linux version 2.6.18-308.8.2.el5.028stab101.1 (root@rhel5-build-x64) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Sun Jun 24 20:25:35 MSD 2012
# ls -l /proc/version
-r--r--r-- 1 root root 0 Aug 22 10:07 /proc/version
Run Code Online (Sandbox Code Playgroud)
文件大小报告为 0,但它有内容。这是如何运作的?
是不是因为/proc是某种虚拟文件系统?
哪个命令可以显示文件的确切大小/proc?
您想在以下 top 命令的屏幕截图中找到3427 1 root S 36964 124% 2% tmux -L l 行。
为什么 tmux 可以使用超过 100% 的内存?这很混乱...
这是 top 命令的错误吗?
Mem: 28748K used, 1060K free, 0K shrd, 888K buff, 2452K cached
CPU: 15% usr 80% sys 0% nic 3% idle 0% io 0% irq 0% sirq
Load average: 6.47 4.22 2.96 3/78 14674
PID PPID USER STAT VSZ %MEM %CPU COMMAND
1028 1 root S 1536 5% 8% /usr/sbin/pppd pty /usr/sbin/pptp 10.
81 2 root SW 0 …Run Code Online (Sandbox Code Playgroud) 我按$,为了同步邮箱,但mutt只是退出......实际上mutt我每次按 $ 都不退出,它只是有时退出。那么我如何找出mutt 退出的原因呢?这是“mutt”中的错误吗?
错误信息是:
Sorting mailbox... Segmentation fault
Run Code Online (Sandbox Code Playgroud)
如果我想知道会发生什么,我可以使用stracewithmutt吗?或者有什么工具可以更好地了解有关问题的更多信息?
现在我回复了一封邮件,然后我按了 $,然后是分段错误。
事实上,我已经成功地将 FLV 转换为 MP3:
D:\tmp\ffmpeg-20121005-git-d9dfe9a-win64-static\ffmpeg-20121005-git-d9dfe9a-win
4-static\bin>ffmpeg.exe -i a.flv -acodec mp3 a.mp3
ffmpeg version N-45080-gd9dfe9a Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 5 2012 16:49:01 with gcc 4.7.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-run
ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass
-enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopen
peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libthe
ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-l
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --en
ble-zlib
libavutil 51. 73.102 / 51. 73.102
libavcodec 54. 63.100 / 54. 63.100
libavformat 54. …Run Code Online (Sandbox Code Playgroud)