![]() ![]() Each tool/script can be a little different in how it takes its arguments. When running scripts and software tools, all the inputs you provide to it are called arguments or parameters or options. If the file is in the current directory or is in your PATH, tab will do auto complete.Īlways remember where you are, on a Unix environment! If genomeFile is actually located in /home/dhivya/references, then you can open it by using one of these two commands:Įxception: If the location of a file, most often, an executable is included in your shell environment variable called PATH, you can run it from anywhere without specifying where it is.Īlways use tab to complete file names. To access files outside your current directory, you can provide the absolute path or relative path to find the file. This will work only if genomeFile is located in /home/dhivya/data. If you are in /home/dhivya/data and you issue the command: On a unix command line, you can only access files that are in your current working directory. So ls -l ~ means "list contents of the my home directory." means "list contents of the parent directory." (two periods) means "directory above current." So ls -l. means "list contents of this current directory" Other useful ones are to allow for any character in the set >įor example: ls *.bam lists all files in the current directory that end in. * (asterisk) is the most common it is a wildcard meaning "any length of any characters". The shell has shorthand to refer to groups of files by allowing wildcards in file names. > is used to redirect STDOUT and STDERR to files.man displays the manual page for a unix command.It's not that common but we'll use wget to pull data from one of TACC's web-based storage devices. wget fetches a file with a valid URL.This only removes empty directories - "rm -r " will remove everything. mkdir and rmdir make and remove the directory "dirname".scp works just like cp but copies source from the user user's directory on remote machine host to the local file destination.cp -r will recursively copy the directory dirname and all its contents to the directory destination. (period) means "here, with the same name". cp copies the file source to the location and/or file name destination}.This is permanent - not a "trash can" deletion. ![]() cat outputs all the contents of - CAUTION - only use on small files.Read the bit above about man to figure out how to navigate and search when using less more and less both display the contents of in nice ways.head and tail shows you the top or bottom 10 lines of a file.df shows you the top level of the directory structure of the system you're working on, along with how much disk space is available. ![]() ~myfriend (tilde "myfriend) means "myfriend's home directory". (period, period) means "up one level". means current directory. ~ (tilde) means "my home directory".
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |