---+ Unix Commands Quick Reference Useful commands and flags that we get tired of looking up... ---+++ Disk Space The <code>du</code> command is verbose and confusing if you run it without options. Here is how to get a human-readable output and a grand total for the path argument (omit for current directory). <code>du -hc</code> ---+++ Fixing Line Endings If you get odd errors after transferring a text file from a PC or Mac to a Unix machine, it's likely that you have a problem with [[http://en.wikipedia.org/wiki/Newline][newline characters]]. This is especially common when editing files in Excel and saving them to tab-delimited or comma-delimited files for input into. You can generally avoid this problem and fix the line endings by using an industrial strength text editor. This command converts Mac line endings in a saved Excel file to Unix line endings. <code>tr "\r" "\n" < input.tab >.converted.tab</code>
Edit
|
Attach
|
P
rint version
V
iew topic
|
Backlinks:
We
b
,
A
l
l Webs
|
H
istory
:
r8
|
r4
<
r3
<
r2
<
r1
|
Refresh
|
More topic actions...
Barrick Lab
>
ComputationList
>
ProtocolsUnixCommandsQuickReference
Topic revision: r2 - 2014-05-30 - 11:52:53 - Main.JeffreyBarrick
Barrick Lab
Homepage
Contact Information
Michigan State University
Department of Microbiology, Genetics, & Immunology
Department of Entomology
Ecology, Evolution, and Behavior Graduate Program
UT Austin iGEM team
Team
Research
Overview
Publications
Software
Protocols
Protocol List
Reference Information
The LTEE
Copyright ©2025 Barrick Lab contributing authors. Ideas, requests, problems?
Send feedback