Unix commands

image

UNIX Commands

CommandFunctionsource
Pwd
Current directory
Open
Open a folder or a file
Ls
List what’s in the directory
Cd
Change directory
Cd ..
Move one level up
Cd ~
Go back to original folder level
Touch text file.txt
Create
Touch [dir/dir/dir]/[filename.txt]
Create fell in a subdirectory
Open [tab]
Suggests what to open
Open [tab] [first letter of file]
This will automatically find the file starting with that letter
Nano
Edit a text
Rm
Remove [first letter of the file you want to remove] [tab]
Rm -r [directory name]
Delete directory permanently
Mkdir
Create a directory
Cp [file] [copy name in same dir]
Copies the file in the same directory
Cp -r [dir] [new dir name]
Copies an entire directory
Mv [file] [new name]
Rename the file
Sudo rm -r [dir]
Delete a protected directory
Man
Manual
Man [command]
Teaches you how to use specific command
Ls -laF
Shows files and attributes
Ls -r
List Recursive with all subdirectories
cat {newfile} >> {oldfile}
Append newfile to end of oldfile.
sz [-a|b] {filename}
Download with a modem: a = ascii, -b = binary. Use binary for everything. (It's the default?)
sz *.zip
Download with a modem: Handy after downloading with FTP. Go talk to your spouse while it does it's stuff.
rz [-a|b] (filename}
Upload with zmodem: Give rz command in Unix, THEN start upload at home. Works fine with multiple files.