Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
MB
Quick Connect
Host Name: login.itd.umich.edu User Name: uniqname Connect Password: type Kerboros passwd
ls
ls pwd
cd Private change directory to "Private" mkdir EECS183 make directory "EECS183" note: linux does NOT like spaces in filenames ls -alg list All files long format
ls pwd cd xxxx
list files in current directory present working directory change directory to xxxx Example: cd Private make directory "EECS183"
mkdir EECS183
ls pwd cd xxxx
list files in current directory present working directory change directory to xxxx
note: linux does NOT like spaces ls -alg list All files long format
ls pwd cd Private
list files in current directory present working directory change directory to "Private" make directory "EECS183"
mkdir EECS183
note: linux does NOT like spaces ls -al list All files long format
% ls -l total 476
-rwxr-xr-x drwxr-xr-x drwxr-xr-x drwxrwxrwx -rw-r--r-1 3 2 3 1 mdorf mdorf mdorf mdorf mdorf staff 455203 Nov 19 staff 2048 Jan 21 staff 2048 Oct 29 staff 2048 Nov 6 staff 455203 Nov 19 2011 2004 2009 2010 2011 a.out f02_proj1 proj4 test towers.exe
% ls -l total 476
-rwxr-xr-x drwxr-xr-x drwxr-xr-x drwxrwxrwx -rw-r--r-1 3 2 3 1 mdorf mdorf mdorf mdorf mdorf staff 455203 Nov 19 staff 2048 Jan 21 staff 2048 Oct 29 staff 2048 Nov 6 staff 455203 Nov 19 2011 2004 2009 2010 2011 a.out f02_proj1 proj4 test towers.exe
d s l
% ls -l total 476
-rwxr-xr-x drwxr-xr-x drwxr-xr-x drwxrwxrwx -rw-r--r-1 3 2 3 1 mdorf mdorf mdorf mdorf mdorf staff 455203 Nov 19 staff 2048 Jan 21 staff 2048 Oct 29 staff 2048 Nov 6 staff 455203 Nov 19 2011 2004 2009 2010 2011 a.out f02_proj1 proj4 test towers.exe
% ls -l total 476
-rwxr-xr-x drwxr-xr-x drwxr-xr-x drwxrwxrwx -rw-r--r-1 3 2 3 1 mdorf mdorf mdorf mdorf mdorf staff 455203 Nov 19 staff 2048 Jan 21 staff 2048 Oct 29 staff 2048 Nov 6 staff 455203 Nov 19 2011 2004 2009 2010 2011 a.out f02_proj1 proj4 test towers.exe
% ls -l total 476
-rwxr-xr-x drwxr-xr-x drwxr-xr-x drwxrwxrwx -rw-r--r-1 3 2 3 1 mdorf mdorf mdorf mdorf mdorf staff 455203 Nov 19 staff 2048 Jan 21 staff 2048 Oct 29 staff 2048 Nov 6 staff 455203 Nov 19 2011 2004 2009 2010 2011 a.out f02_proj1 proj4 test towers.exe
% ls -l total 476
-rwxr-xr-x drwxr-xr-x drwxr-xr-x drwxrwxrwx -rw-r--r-1 3 2 3 1 mdorf mdorf mdorf mdorf mdorf staff 455203 Nov 19 staff 2048 Jan 21 staff 2048 Oct 29 staff 2048 Nov 6 staff 455203 Nov 19 2011 2004 2009 2010 2011 a.out f02_proj1 proj4 test towers.exe
% ls -l total 476
-rwxr-xr-x drwxr-xr-x drwxr-xr-x drwxrwxrwx -rw-r--r-1 3 2 3 1 mdorf mdorf mdorf mdorf mdorf staff 455203 Nov 19 staff 2048 Jan 21 staff 2048 Oct 29 staff 2048 Nov 6 staff 455203 Nov 19 2011 2004 2009 2010 2011 a.out f02_proj1 proj4 test towers.exe
% ls -l total 476
-rwxr-xr-x drwxr-xr-x drwxr-xr-x drwxrwxrwx -rw-r--r-1 3 2 3 1 mdorf mdorf mdorf mdorf mdorf staff 455203 Nov 19 staff 2048 Jan 21 staff 2048 Oct 29 staff 2048 Nov 6 staff 455203 Nov 19 2011 2004 2009 2010 2011 a.out f02_proj1 proj4 test towers.exe
% ls -l total 476
-rwxr-xr-x drwxr-xr-x drwxr-xr-x drwxrwxrwx -rw-r--r-1 3 2 3 1 mdorf mdorf mdorf mdorf mdorf staff 455203 Nov 19 staff 2048 Jan 21 staff 2048 Oct 29 staff 2048 Nov 6 staff 455203 Nov 19 2011 2004 2009 2010 2011 a.out f02_proj1 proj4 test towers.exe
d: r: w: x:
d: r: w: x:
others
2002 proj4
drwxr-xr-x 2 mdorf staff directory rwx for 'owner' r-x for 'group' r-x for 'others'
d: r: w: x:
others
2011 towers.exe
owner rw-
group r--
others r--
d: r: w: x:
others
2011 towers.exe
owner rw-
group r--
others r--
-rw-r--r-- 1 mdorf staff 455203 Nov 19 owner group other "who" are permissions being changed for u user who owns the file g group the file belongs to o other users a all of the above
2011 towers.exe
add 'execute' 1) chmod u+x 2) chmod g+x chmod o+x 3) chmod a+x
-rw-r--r-- 1 mdorf staff 455203 Nov 19 owner group other "who" are permissions being changed for u user who owns the file g group the file belongs to o other users a all of the above
2011 towers.exe
add 'execute' 1) chmod u+x 2) chmod g+x chmod o+x 3) chmod a+x
cp
from
to test1.cpp
cp v.cpp
rm
fileName
rm rm
rm rm
rm
*.*
//DANGEROUS
rm rm
rm
rm
*.*
*
//DANGEROUS
//REALLY DANGEROUS
rmdir
rmdir rf
use arrow keys to go through previous commands easy way to type it once and run it often
g++ debug.cpp
Compile every *.cpp in current directory and create executable g++ *.cpp
Compile every *.cpp in current directory and create executable g++ *.cpp
./a.out
./exeName
diff
file1.txt
file2.txt
vim emacs
Gedit
nano
cheat sheets:
http://www.tuxfiles.org/linuxhelp/vimcheat.html
http://bullium.com/support/vim.html
use redirection and different input files diff output with expected output
If any faculty and/or GSI/IA in 280 tells you that you MUST develop in linux, please please relay this to me this is NOT true, nor needed take the easy way and use an IDE
Visual xcode double check in linux