answersLogoWhite

0

#!/bin/sh

mkdir homework lazyass

for i in $(seq 5); do touch homework/file-$i; done

mv homework/* lazyass

User Avatar

Wiki User

16y ago

What else can I help you with?

Continue Learning about Engineering

How do you set working directory in RStudio?

The global default working directory is ~. Note that relative file references in your code will become invalid when you change working directories.There are a number of ways to change the current working directory:Use the setwd R function.Use the Tools | Change working dir... menu (Session | Set working Directory on a Mac).From within the File pane, use More | Set As Working Directory menu.On Windows, you can set the working directory by changing the Start in field of your RStudio shortcut.On a Mac you can drag/drop a folder onto the RStudio Dock icon to set the working directory.Alternatively, open a terminal and specify the work directory:$ open -a RStudio ~/projects/foo$ open -a RStudio .Note you can use the same terminal commands in Linux, however omit the trailing '.' in the second invocation. The first invocation sets "~/projects/foo" as the working directory, the second uses the current working directory.When launched through file association, RStudio automatically sets the current working directory to the directory of the opened file. However, if RStudio is already running, opening another file via file association will not change the current working directory.RStudio uses the .Rprofile file located in the current working directory. If there is no .Rprofile in that directory, the .Rprofile file located in the global default working directory (~/.Rprofile) is used instead.The global .RData file will be saved in your new working directory when you exit RStudio.


Can I transfer to another university after my freshman year?

Yes but, in general, you are going to lose credits. Make sure you verify transferability of credits before you make the decision to transfer.


Why you use transformers to transfer power?

Transformers do not exactly transfer power, they either step up voltage or step down the voltage from one source to another to make it a useable voltage.


Involves the transfer of carbon from one reservoir to another?

i have the same work sheet as you haha! carbon cycle


Why is an elevator important?

elevator , which reduces time to transfer the things very quickly from one stairs to another

Related Questions

What are subdirectories or folders?

Computers store data in a series of directories. Each directory, or folder, may contain files or other directories. If a directory is located within another directory, it is called a sub-directory (or sub-folder) of that folder.


What is the directory name on computers?

C: is the main directory.In computing, a directory, catalog, folderor drawer is an entity in a file system, which contains a group of files and/or other directories. A typical file system may contain thousands (or even hundreds of thousands) of directories. Files are kept organized by storing related files in the same directory. A directory contained inside another directory is called a subdirectory of that directory. Together, the directories form a hierarchy, or tree structure.


Which are the most basic FTP commands?

FTP or File Transfer Protocols allow the transfer of files from a host machine to another machine over a network e.g. the internet. The user logs on to the remote site using a user name and password. Basic commands include "cd pathname" to change directories to that specified by the pathname. "Dir" is the directory that lists the files on the remote machine. "Get" locates the file to be transferred. "Put" transfers the file. "Help" explains an individual selected command, and "quit" closes the remote session and terminates the FTP.


What do you mean by sub directory and current directory?

Current directory/Sub-directory **************************************** The current directory is simply the directory a user is currently in - for instance: when in the Home directory, or the Music directory, and so on. A sub directory is another directory inside a main directory - for instance: in the Music Directory - Jazz, Elkie Brooks, Classical, are examples of three sub directories.


In Linux what are three commands you can use to create a subdirectory?

1. The most straightforward way to create a create a subdirectory in the current directory is mkdir name where name is the name of the new directory. 2. Another way is to move a directory and its descendants from somewhere else: mv path name where path is an absolute or relative pathname for an existing directory hierarchy, and name is the directory name it will be given in the current directory. 3. Various utilities for unpacking archives may create directories as they execute; for example cpio, tar, unzip etc.


What is a directory in the sense of a computer files?

Directories and folders are interchangeable terms. In the days before Windows (known as the "DOS" days), "Folders" were called, "Directories." To explain what a directory was, it was said to be "like a folder" which held documents (files) and sometimes envelopes (sub-directories) which could also hold other envelops and/or documents etc. etc. At some point Microsoft started referring to "Directories" as "Folders" supposedly to make it easier to understand for those new to computers. Computer files are always found in a named Directory. If a file isn't in a named directory, it is said to be in the "Root" directory i.e "In the root directory of the D: drive." Further, if a sub-directory/folder is in another directory, it is the "child" of the "parent" directory.


How do you get telephone directories for another state?

You can inform the telephone department of another state that you require telephone directory for your personal or official use. They will send by post or courier. If they fix any price for it, you can pay it in advance. Yellow Pages are issuing directories on commercial purpose with free of cost. Nowadays it is very easy to get other states" directories. Your library may have some, but most phone directories are now searchable online (on the Internet).


What are some command prompt codes?

If you mean commands there are several. To list a few, there is the command "tree" This command shows all files and directories within the directory of choice. Another would be "mkdir". This creates a folder with the name of your choice into the directory you are curruently on right now. The most used command would be "cd" which changes directory you are curruently accessing. Many other commands can be found by typing in the command "/?" or "/help" I hope this helped. *^^* BTW, for certain prompts it will say the operation requires elevation. This means you need to run the command prompt as an administrator.


What does CD means in Linux os?

If by "CD" you mean the linux terminal command "cd", it stands for "change directory". It allows you to move from one directory to another. It's basically the same as Window's cd command.cd / will take you to the very first directory, which is the root directory. (Do not confuse this with /root directory)cd .. will take you one directory upcd ~ will take you to your (currently logged in user's) home directory, which is, (/home/)cd - will take you back to where you were before you change directories.


How do you transfer multiple files from one directory to another in UNIX os?

The easiest way is to use the 'cp' command. Put the name of all the files in the 'cp' command line and use another directory as the target; all the files will be copied to the new directory. Note: you may need to use the -r (recursive) copy option if you have subdirectories in the source directory.


What can you transfer from one domain controller to another using the Active Directory Domains and Trusts MMC snap-in?

Domain Naming Master


What command can be used to view a list of directories hierrchies?

The command ls / will list the contents of the root directory; most items will be directories or links. If you want to see only directories, ls -l / | grep ^d will give a "long" list (including information other than the directory name) but limited to those lines beginning with a "d", indicating a directory. The output of this pipeline can be piped to the awk utility to select only the last word of each line, which will be the directory name; alternatively the output can be redirected to a text file which you can then edit: ls -l / ] grep ^d > textfilename Another approach would be to use the find command to search / for entries of type d, with search depth limited to 1.