<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ccn-wiki.caset.buffalo.edu/index.php?action=history&amp;feed=atom&amp;title=BASH_Commands</id>
	<title>BASH Commands - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ccn-wiki.caset.buffalo.edu/index.php?action=history&amp;feed=atom&amp;title=BASH_Commands"/>
	<link rel="alternate" type="text/html" href="https://ccn-wiki.caset.buffalo.edu/index.php?title=BASH_Commands&amp;action=history"/>
	<updated>2026-04-13T11:16:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://ccn-wiki.caset.buffalo.edu/index.php?title=BASH_Commands&amp;diff=2085&amp;oldid=prev</id>
		<title>Chris: /* cp */</title>
		<link rel="alternate" type="text/html" href="https://ccn-wiki.caset.buffalo.edu/index.php?title=BASH_Commands&amp;diff=2085&amp;oldid=prev"/>
		<updated>2020-09-16T16:57:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;cp&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:57, 16 September 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot;&gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  cp thisfile ~/newdirectory #makes a copy of &amp;#039;&amp;#039;&amp;#039;thisfile&amp;#039;&amp;#039;&amp;#039; and puts it in the &amp;#039;&amp;#039;newdirectory&amp;#039;&amp;#039; subdirectory&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  cp thisfile ~/newdirectory #makes a copy of &amp;#039;&amp;#039;&amp;#039;thisfile&amp;#039;&amp;#039;&amp;#039; and puts it in the &amp;#039;&amp;#039;newdirectory&amp;#039;&amp;#039; subdirectory&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Copying directories is (slightly) trickier because you have to copy both the directory, and all the files in it. This is called a &amp;#039;&amp;#039;recursive&amp;#039;&amp;#039; copy:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Copying directories is (slightly) trickier because you have to copy both the directory, and all the files in it. This is called a &amp;#039;&amp;#039;recursive&amp;#039;&amp;#039; copy:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  cp -r thisdirectory ~/ #makes a copy of &amp;#039;&amp;#039;&amp;#039;thisdirectory&amp;#039;&amp;#039;&amp;#039;, putting it in your home directory (~/)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  cp -r thisdirectory ~/ #makes a copy of &amp;#039;&amp;#039;&amp;#039;thisdirectory&amp;#039;&amp;#039;&amp;#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and all the files in it&lt;/ins&gt;, putting it in your home directory (~/)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Chris</name></author>
	</entry>
	<entry>
		<id>https://ccn-wiki.caset.buffalo.edu/index.php?title=BASH_Commands&amp;diff=2084&amp;oldid=prev</id>
		<title>Chris: Created page with &quot;BASH stands for Bourne-Again SHell, and is the default command-line terminal environment on our Ubuntu computers. Here is a collection of commonly-used shell commands. =direct...&quot;</title>
		<link rel="alternate" type="text/html" href="https://ccn-wiki.caset.buffalo.edu/index.php?title=BASH_Commands&amp;diff=2084&amp;oldid=prev"/>
		<updated>2020-09-16T16:56:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;BASH stands for Bourne-Again SHell, and is the default command-line terminal environment on our Ubuntu computers. Here is a collection of commonly-used shell commands. =direct...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;BASH stands for Bourne-Again SHell, and is the default command-line terminal environment on our Ubuntu computers. Here is a collection of commonly-used shell commands.&lt;br /&gt;
=directory navigation and management=&lt;br /&gt;
==ls==&lt;br /&gt;
&amp;lt;code&amp;gt;ls&amp;lt;/code&amp;gt; lists the directory contents. By default, it only shows non-hidden files and folders:&lt;br /&gt;
 ls&lt;br /&gt;
Hidden files and folders are shown with the -a switch:&lt;br /&gt;
 ls -a&lt;br /&gt;
Extra information (e.g., timestamps, ownership permissions) is shown with the -l switch:&lt;br /&gt;
 ls -a -l&lt;br /&gt;
==cd==&lt;br /&gt;
&amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt; changes your directory. Without any target, it sends you back to your home directory:&lt;br /&gt;
 cd&lt;br /&gt;
&lt;br /&gt;
With a target, it sends you to the named directory:&lt;br /&gt;
 cd /ubfs/caset/cpmcnorg&lt;br /&gt;
Go to the parent directory:&lt;br /&gt;
 cd ..&lt;br /&gt;
&amp;lt;code&amp;gt;~/&amp;lt;/code&amp;gt; is a shorthand alias for your home directory. So the following three commands are equivalent:&lt;br /&gt;
 cd &amp;#039;&amp;#039;&amp;#039;username&amp;#039;&amp;#039;&amp;#039; #where &amp;#039;&amp;#039;&amp;#039;username&amp;#039;&amp;#039;&amp;#039; is replaced with your actual username&lt;br /&gt;
 cd&lt;br /&gt;
 cd ~/&lt;br /&gt;
&lt;br /&gt;
==mkdir==&lt;br /&gt;
&amp;lt;code&amp;gt;mkdir&amp;lt;/code&amp;gt; makes a directory with a particular name:&lt;br /&gt;
 mkdir newdirectory&lt;br /&gt;
The new directory is created as a subdirectory of your current directory.&lt;br /&gt;
&lt;br /&gt;
==cp==&lt;br /&gt;
&amp;lt;code&amp;gt;cp&amp;lt;/code&amp;gt; copies a file or directory from one place to another directory:&lt;br /&gt;
 cp thisfile ~/newdirectory #makes a copy of &amp;#039;&amp;#039;&amp;#039;thisfile&amp;#039;&amp;#039;&amp;#039; and puts it in the &amp;#039;&amp;#039;newdirectory&amp;#039;&amp;#039; subdirectory&lt;br /&gt;
Copying directories is (slightly) trickier because you have to copy both the directory, and all the files in it. This is called a &amp;#039;&amp;#039;recursive&amp;#039;&amp;#039; copy:&lt;br /&gt;
 cp -r thisdirectory ~/ #makes a copy of &amp;#039;&amp;#039;&amp;#039;thisdirectory&amp;#039;&amp;#039;&amp;#039;, putting it in your home directory (~/)&lt;/div&gt;</summary>
		<author><name>Chris</name></author>
	</entry>
</feed>