====== Unix command line cheat sheet ======
<code>
File Commands
ls - directory listing
ls -a - directo... uptime - show current uptime
w - display who is online
whoami - who you are logged in as
finger user - d... <<<$PATH - show directories in the PATH, one per line
sed 's/:/\n/g' <<<$PATH - show directories in the PATH, one per line with sed
Compression
tar cf file.tar files - cre
====== Lightning fast command line use in Linux ======
You can use keyboard shortcuts and other command line tricks to make entering commands easier and faste... n terminal:
| Ctrl-a | Move to the start of the line. |
| Ctrl-e | Move to the end of the line. |
| Alt-] x | Moves the cursor forward to the next occurre
u to separate your bibliography into papers and online references. Here's how to accomplish this using L... e=inproceedings or
type=book
}
\defbibfilter{online}{
type=online
}
\printbibliography[filter=papers]
\printbibliography[filter=online]
\end{document}
</file>
<file bib database.bib>
's important to create archives and store them offline and at a remote site.
This script will perform ... bin/BackupPC_archiveStart"
hosts=""
while read -r line; do
# Skip comments
[[ "$line" =~ ^#.*$ ]] && continue
host=`echo $line | cut -f 1 -d " "`
[ "$host" != "" -a "$host" != "ar
ed to work.
My current workaround is:
Add this line to /etc/default/grub:
GRUB_CMDLINE_LINUX_DEFAULT="text quiet init_on_alloc=0 intel_iommu=off"
No s... ''sudo vim /etc/default/grub''
- go to: GRUB_CMDLINE_LINUX=" " and add to: GRUB_CMDLINE_LINUX="init_on_alloc=0"
- save and exit
- ''sudo update-grub''
====== vim show linenumbers ======
Displaying line numbers while editing a file can be handy. This reci... e describes how to turn on and off the display of line numbers in vi and vim.
While editing a document... ot inserting text), type the following to turn on line numbers:
:set number
If you tire of the line numbers, enter the following command to turn them off:
====== Search Google.com from the Linux command line ======
You can search Google.com from the Linux command line without using a CLI web browser like lynx or Elin... ips4linux.com/search-googlecom-from-the-linux-command-line/
{{tag>linux}}
~~LINKBACK~~
~~DISCUSSION~~
them, but did you know there's a built-in command-line utility that can do just that? Here's how to do i... le to use the cipher.exe utility from the command line to securely overwrite files—all you need to do is... /securely-overwrite-files-with-a-built+in-command-line-trick?utm_source=feedburner&utm_medium=feed&utm_c
script file like so:
sedscript - one command per line
s/#00CC00/#9900CC/g
s/#990099/#000000/g
s/#... amples
Trim whitespace from beginning and end of line
You *might* have to type a tab instead of t here ... hould bookmark
* http://sed.sourceforge.net/sed1line.txt – Eric Pement
* http://www.catonmat.net/blo
The allow/deny files consist of one user name per line.
==== Commands ====
export EDITOR=vi ;to spec... 5/15 do at 5,20,35,50
''
==== Example ====
A line in crontab file like below removes the tmp files... the following command At the end of the cron job line .
''
>/dev/null 2>&1
''
==== Generate log
Windows box from your Linux machine, the Command-Line Fu web site has you covered with the quick and ea... ssword section, you'll be prompted on the command line for the password—which might be more secure if yo
====== Tasks that are best done on the command line ======
Here are a few tasks that you might want to consider using the command line for.
===== Resizing images =====
Unless you are
reate a short shellscript containing your command line, e.g.:\\ ''rdesktop -g 1024x768 -k de-ch -u user ... ry good and can be tuned further using the commandline parameters of rdesktop.
* I use this to run ou
ies
sudo apt-get install build-essential m4 readline-common libreadline-dev texlive xpdf evince tk8.5-dev gfortran
Download the current version of the sour