![]() ![]() cat > file_name = takes input of text to store and add it to file.cat > file_name = creates a new file and saves the input text (ctrl+d to exit).cat file_name = reads the file and prints it in terminal.rmdir DIR = removes directories that don't have anything in them.rm -r = this removes the directory (-r mean recursively ,i.e remove all files all subdirectory and the directory itself).rm file* = removes all the files in the directory starting with 'file'.rm file_name = the file will be deleted.mv from_dir/file to_dir/file = here move command copies the from file and deletes it, pastes it in to dir.mv old_file_name new_file_name = move command, when used in the same directory, deletes the old file and makes a new file with the new_file_name (Renaming).cp from_dir/file to_dir/file = copies files, works with files in the current directory if no dir specified.mkdir -p folder/sub_folder = used to create directories. ![]() mkdir folder_name folder_name_2 = can create folder with these.echo "hello again" > file_2.txt = adds text to already created file.echo "hello textfile" > file_2.txt = adds text and creates file.touch file_1.txt file_2.txt = creates empty files.locate FILE_NAME = finds all the directories where the file isĬtrl+c : to stop a command that keeps running.Popd = brings back to the saved path of pushd Pushd PATH= changes to specified path and saves the current path = used to go up directoriesĭ:= to change drive working on documents = lists all the files of the relative path Ĭd folder/sub_folder = can be used to go change current directoryĬd. Ls -a & ls -la = list files with extra info Ls = list all files in the current directory pwd = Tells the current working directory.This Sheet Contains all the basic command prompt commands, from moving and editing files to shortcuts for using the command line, This File also has Command Line editors' commands. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |