recentpopularlog in

aries1988 : linux   125

« earlier  
Rsync (Remote Sync): 10 Practical Examples of Rsync Command in Linux
-v : verbose
-r : copies data recursively (but don’t preserve timestamps and permission while transferring data
-a : archive mode, archive mode allows copying files recursively and it also preserves symbolic links, file permissions, user & group ownerships and timestamps
-z : compress file data
-h : human-readable, output numbers in a human-readable format
rsync  backup  linux 
february 2019 by aries1988
在地铁11号线上写书 - Vamei
【摘要】我是抱着玩的心态开始用电脑的。自从家里有了电脑之后,我就想方设法抓起鼠标和键盘打一会儿游戏。《金庸群侠传》《仙剑》《星际》《盟军敢死队》,这些老游戏都玩了个遍。父母担心我沉迷游戏,一度没收了我的鼠标和键盘。总之,当时的电脑只是个娱乐平台。 那个时候已经在提“20世纪是计算机的世纪”。好莱坞电影开始把 阅读全文
book  linux  raspberry  primer 
july 2018 by aries1988
tabs when using 'screen' - Unix & Linux Stack Exchange
When you press Ctrl+a and " you can see the screen "tabs", they aren't supposed to be tabs on your terminal GUI, you can do that manually by creating a new tab at the terminal GUI you are using and then run at the new tab screen -r to return to your screen session and then navigate to your desired session with Ctrl+a and a number or " to see a menu with all your tabs.

You can give a name to each one of you screen "tabs" by pressing Ctrl + a then A .
tab  screen  linux 
june 2018 by aries1988
[Bash] Convert Video to Animated GIF - Pastebin.com
ffmpeg -i input -vf scale=320:-1:flags=lanczos,fps=10 frames/ffout%03d.png
 
#Then use convert (or gm convert if you prefer GraphicsMagick) to make your animated GIF:
convert -loop 0 frames/ffout*.png output.gif
gif  linux  tool 
may 2018 by aries1988
Code::Blocks
Codeblocks is a cross-platform IDE built around wxWidgets, designed to be extensible and configurable. Runs on Windows and Linux.
ide  linux  tool 
may 2018 by aries1988
Modify File Permissions with chmod
Restore Default File Permissions
In many cases the default permissions for files on a Unix system are often 600 or 644. Permissions of 600 mean that the owner has full read and write access to the file, while no other user can access the file. Permissions of 644 mean that the owner of the file has read and write access, while the group members and other users on the system only have read access. Issue one of the following commands to achieve these “default” permissions:

For executable files, the equivalent settings would be 700 and 755 which correspond to 600 and 644 except with execution permission. Issue one of the following commands to achieve these executable “default” permissions:
linux  chmod 
september 2017 by aries1988
vim - What is `^M` and how do I get rid of it? - Unix & Linux Stack Exchange
The ^M is a carriage-return character. If you see this, you're probably looking at a file that originated in the DOS/Windows world, where an end-of-line is marked by a carriage return/newline pair, whereas in the Unix world, end-of-line is marked by a single newline.

dos2unix filename
linux  windows  format  text 
august 2017 by aries1988
Philip Blakely Post-Doctoral Research Associate
Introduction to Linux

Scientific Programming in C++

Introduction to CUDA
resource  c++  cuda  linux 
july 2017 by aries1988
Standard Notes
A standard notes app with an un-standard focus on longevity, portability, and privacy.
notes  software  ios  os  online  windows  linux 
january 2017 by aries1988
Mounting a Time Capsule Drive In Linux
Critically, you need to insist on NTLM authentication using the sec=ntlm option. You may additionally want to specify file_mode, dir_mode and other standard mount options.
linux  timecapsule 
july 2016 by aries1988
ghostscript - Merge several eps files into one PDF - Unix & Linux Stack Exchange
gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -sOutputFile=sin_800.pdf *.eps
howto  pdf  eps  image  linux 
october 2015 by aries1988
Git Diff with Vimdiff | Jonathan's Techno-tales
function git_diff() {
git diff --no-ext-diff -w "$@" | vim -R –
}

--no-ext-diff : to prevent using vimdiff
-w : to ignore whitespace
-R : to start vim in read-only mode
– : to make vim act as a pager
diff  git  vim  vimdiff  howto  linux 
july 2015 by aries1988
bibliographies - Creating a central bibliography - TeX - LaTeX Stack Exchange
Windows C:\Users\<user name>\texmf\bibtex\bib\local
Mac OS X ~/Library/texmf/bibtex/bib/local
Linux ~/texmf/bibtex/bib/local
latex  linux  mac  windows  tips  biblio 
february 2015 by aries1988
rsync output - Stack Overflow
s means the size of a regular file is different and will be updated by the file transfer.
t or T:
t means the modification time is different and is being updated to the sender's value
linux  explained  sync 
january 2015 by aries1988
In Unix, what is tar, and how do I use it?
tar -cvzf file.tar.gz inputfile1 inputfile2
linux 
december 2014 by aries1988
Archivage tar pax zip rar - Lea Linux
Tar peut archiver en utilisant des algorithmes de compression, afin d'avoir des archives moins volumineuses. Par habitude, on suffixe les archives avec un . suivi d'une extension de compression.
explained  linux 
october 2014 by aries1988
Linux Mint Forums • View topic - Taking control of the Super key
Thanks! That pointed me in the right direction. "Alt/Win key behavior" -> "Hyper is mapped to Win-keys" checked results in me being able to remap using the Super key. Awesome!
linux  ubuntu 
october 2014 by aries1988
gnome - Moving windows from the keyboard - Ask Ubuntu
Here is a list of shortcuts:

Ctrl+Alt+Num 1 = moves the window to the bottom left corner
Ctrl+Alt+Num 2 = moves the window to the bottom half of the screen
Ctrl+Alt+Num 3 = moves the window to the bottom right corner
Ctrl+Alt+Num 4 = moves the window to the left half of the screen
Ctrl+Alt+Num 5 = maximizes the window
Ctrl+Alt+Num 6 = moves the window to the right half of the screen
Ctrl+Alt+Num 7 = moves the window to the right left corner
Ctrl+Alt+Num 8 = moves the window to the top half of the screen
Ctrl+Alt+Num 9 = moves the window to the right right coner
howto  linux  work  keyboard 
september 2014 by aries1988
临时解决 cat 打开中文乱码 - himalayas - BlogJava
临时解决 cat 打开中文乱码

cat test.txt | iconv -f GBK -t UTF-8
linux  chinese 
august 2013 by aries1988
linux - Chmod 755 and 751 - Super User
7(8) = 111(2) => rwx
5(8) = 101(2) => r-x
1(8) = 001(2) => --x
chmod  explained  linux 
may 2013 by aries1988
Keyboard Shortcuts for Bash ( Command Shell for Ubuntu, Debian, Suse, Redhat, Linux, etc) - How-To Geek
Ctrl AGo to the beginning of the line you are currently typing on Ctrl EGo to the end of the line you are currently typing on Ctrl L              Clears the Screen, similar to the clear command Ctrl UClears the line before the cursor position. If you are at the end of the line, clears the entire line. Ctrl HSame as backspace Ctrl RLet’s you search through previously used commands Ctrl CKill whatever you are running Ctrl DExit the current shell Ctrl ZPuts whatever you are running into a suspended background process. fg restores it. Ctrl WDelete the word before the cursor Ctrl KClear the line after the cursor Ctrl TSwap the last two characters before the cursor Esc TSwap the last two words before the cursor Alt FMove cursor forward one word on the current line Alt BMove cursor backward one word on the current line TabAuto-complete files and folder names
linux  shortcuts  via:jkprime  bash 
february 2013 by aries1988
BASH: How to Redirect Output to File, AND Still Have it on Screen
ls -l 2>&1 >file.txt
will send stderr to your screen and stdout to file.txt. Why? Because stderr was redirected to the same place as stdout, but at this time stdout was still pointing to the console. stdout was not redirected to file.txt until AFTER stderr had been redirected. When we are talking AFTER in this example we are talking about placement on the command line. Things specified further to the right are thought of as coming after. So this example does nothing for stderr. stderr is indeed redirected to the same place as stdout, which is the console at the time of the redirection, but stderr was ALREADY pointing there in the first place - resulting in no perceivable change.

It makes sense in the light of the shell's operation. The "|" is actioned in "3. Parses the tokens into simple and compound commands" and the ">"s are actioned in "5. Performs any necessary redirections ..." so, in this case, the ls command's stdout is already configured for redirection to the tee command by the time the ">"s are processed.
bash  linux  output  howto  explained 
december 2012 by aries1988
linux - Why does find -exec mv {} ./target/ + not work? - Stack Overflow
find -exec command {} ;

For each result, command {} is executed. All occurences of {} are replaced by the filename. ; is prefixed with a slash to prevent the shell from interpreting it.

find -exec command {} +

Each result is appended to command and executed afterwards. Taking the command length limitations into account, I guess that this command may be executed more times, with the manual page supporting me:
bash  linux  workflow 
october 2012 by aries1988
巧设linux自动挂载脚本
http://www.instapaper.com/read/220753796

因为我是想让window和linux共用一个webDocument目录,文中的fmask和dmask都能让网站正常运行,不过碰到需要上传文件时就没有权限了,这种挂载脚本挂载之后文件目录权限又不能动态更改,再者说将所有文件权限设置为777也是很不理智的,于是想到了linux的用户组,我找到apache进程,是属于www-data这个用户的,同时改用户也属于www-data用户组,于是执行 usermod -G yourgroup www-data 将改用户添加到你平时登录使用的用户组,再编辑/etc/fstab 将dmask改为002 fmask改为113,重启一下,权限有了,还相对较安全是不? ^_^
linux 
august 2012 by aries1988
28个Unix/Linux的命令行神器
下面是Kristóf Kovács收集的28个Unix/Linux下的28个命令行下的工具(原文链接),有一些是大家熟悉的,有一些是非常有用的,有一些是不为人知的。这些工具都非常不错,希望每个人都知道。本篇文章还在Hacker News上被讨论,你可以过去看看。我以作者的原文中加入了官网链接和一些说明。
googlereader  linux  bash 
july 2012 by aries1988
gnuplot / datafile (3E)
How do I use UNIX commands inside gnuplot.
gnuplot  unix  linux  awk  sed 
july 2012 by aries1988
使用 EqualX 编辑 LaTeX 公式 — LinuxTOY
EqualX 是一个图形化的 TeX/LaTeX 公式编辑器,它提供直观易用的界面,支持语法加亮及代码补全,能够导出 TEX、PNG、PDF 等多种格式。对于需要使用 LaTeX 来进行文档排版的同学来说,应当是很不错的得力助手。
linux  latex  preview  tool 
june 2012 by aries1988
Extract Scanned Text From PDF
Extract scanned text from a PDF file using Tesseract, Poppler and ImageMagick.
-------
Advice about the scripts included in this site: try to understand what the script does and attempt to write your own version. If you just cut and paste the next time you'll have to visit my stupid site again ;-). Remember, it's not free software but to learn what makes you free.
bash  example  filename  pdf  oct  linux  howto  script 
may 2012 by aries1988
Chmod permissions (flags) explained: 600, 0600, 700, 777, 100 etc.. | thinkplexx.com
chmod 600 file – owner can read and write
chmod 700 file – owner can read, write and execute
chmod 666 file – all can read and write
chmod 777 file – all can read, write and execute
permission  flag  chmod  linux 
march 2012 by aries1988
K2pdfopt
If you're not getting what you want out of k2pdfopt, other utilities may be useful as alternatives to or in conjunction with k2pdfopt, but be sure to "check under the hood" of k2pdfopt--it has many options that make it useful as a generic tool to manipulate PDF files (see my k2pdfopt help pages). Similar utilities to k2pdfopt are PaperCrop (review here), PDFRead, Cut2Col (converts 2-column PDFs to 1-column using an intuitive GUI, written in Java), and SoPDF (open-source PDF-to-Sony reader app written in C++, command-line based). Cut2Col, SoPDF, and, PaperCrop (as of v0.51) all add cropping directives to the PDF file so that all of the original contents are still in the PDF file (in text form and searchable if they started that way)--they are just custom cropped on each new page. K2pdfopt now has this same native PDF output option as of v1.60. Jpdftweak is an excellent "swiss army knife" for PDF files that I use to extract or merge pages from different PDF files. Or try running k2pdfopt with the -mode copy option to optimize scanned PDFs or convert DJVU files to PDF. Briss and PDF Scissors are open-source PDF cropping apps. Calibre is a free, professional mobi-book organizer and converter. PdfMasher is a PDF text-to-mobi converter that claims to be smarter than calibre (or at least to give the user more control over the conversion). The Big List of Free Kindle Tools was posted by freewaregenius.com on 8-28-11.
pdf  kindle  linux  showcase  tool  software 
january 2012 by aries1988
/usr 的来龙去脉
/usr/bin : 所有可执行文件,如 gcc,firefox 等(指不包含在 /sbin 和 /bin 内的);
/usr/include : 各种头文件,编译文件等时需要使用;
/usr/include/’package-name’ : 程序特定的头文件;
/usr/lib : 所以可执行文件所需要的库文件;
/usr/local : /usr 通常只包含系统发行时自带的程序,而 /usr/local 则是本地系统管理员用来自由添加程序的目录;
linux  info 
november 2011 by aries1988
« earlier      
per page:    204080120160

Copy this bookmark:





to read