diff --git a/build/.cmake/api/v1/query/client-integration-vscode/cache-v2 b/build/.cmake/api/v1/query/client-integration-vscode/cache-v2 new file mode 100644 index 0000000..e69de29 diff --git a/build/.cmake/api/v1/query/client-integration-vscode/cmakeFiles-v1 b/build/.cmake/api/v1/query/client-integration-vscode/cmakeFiles-v1 new file mode 100644 index 0000000..e69de29 diff --git a/build/.cmake/api/v1/query/client-integration-vscode/codemodel-v2 b/build/.cmake/api/v1/query/client-integration-vscode/codemodel-v2 new file mode 100644 index 0000000..e69de29 diff --git a/tutorial/tutorial_cmd/basiccmdlist.txt b/tutorial/tutorial_cmd/basiccmdlist.txt new file mode 100644 index 0000000..bc5cc86 --- /dev/null +++ b/tutorial/tutorial_cmd/basiccmdlist.txt @@ -0,0 +1,14 @@ +cd +to go to different directory +ls +to list directory contents +man +display manual pages +mv +Move or rename files and directories +mkdir +Creates a directory +rmdir +Removes a directory +touch +Change a file access and modification times diff --git a/tutorial/tutorial_cmd/cat.txt b/tutorial/tutorial_cmd/cat.txt new file mode 100644 index 0000000..d32576b --- /dev/null +++ b/tutorial/tutorial_cmd/cat.txt @@ -0,0 +1,9 @@ +cat {{file}} +Print the contents of a file to the standard output +cat {{file1}} {{file2}} > {{target_file}} +Concatenate several files into the target file +cat {{file1}} {{file2}} >> {{target_file}} +Append several files into the target file +cat -n {{file}} +Number all output lines: + diff --git a/tutorial/tutorial_cmd/cd.txt b/tutorial/tutorial_cmd/cd.txt new file mode 100644 index 0000000..8eb11ca --- /dev/null +++ b/tutorial/tutorial_cmd/cd.txt @@ -0,0 +1,8 @@ +cd path/to/directory +command to Go to the given directory +cd +command to go to home directory of current user +cd .. +Go up to the parent of the current directory +cd - +Go to the previously chosen directory \ No newline at end of file diff --git a/tutorial/tutorial_cmd/chmod.txt b/tutorial/tutorial_cmd/chmod.txt new file mode 100644 index 0000000..6922e80 --- /dev/null +++ b/tutorial/tutorial_cmd/chmod.txt @@ -0,0 +1,15 @@ +chmod u+x {{file}} +Give the [u]ser who owns a file the right to e[x]ecute it +chmod u+rw {{file_or_directory}} +Give the [u]ser rights to [r]ead and [w]rite to a file/directory +chmod g-x {{file}} +Remove e[x]ecutable rights from the [g]roup +chmod a+rx {{file}} +Give [a]ll users rights to [r]ead and e[x]ecute +chmod o=g {{file}} +give [o]thers (not in the file owner's group) the same rights as the [g]roup +chmod o= {{file}} +Remove all rights from [o]thers +chmod -R g+w,o+w {{directory}} +Change permissions recursively giving [g]roup and [o]thers the ability to [w]rite + diff --git a/tutorial/tutorial_cmd/echo.txt b/tutorial/tutorial_cmd/echo.txt new file mode 100644 index 0000000..e69c008 --- /dev/null +++ b/tutorial/tutorial_cmd/echo.txt @@ -0,0 +1,11 @@ +echo "{{Hello World}}" +Print a text message. Note: quotes are optional +echo "{{My path is $PATH}}" +Print a message with environment variables +echo -n "{{Hello World}}" +Print a message without the trailing newline +echo "{{Hello World}}" >> {{file.txt}} +Append a message to the file +echo -e "{{Column 1\tColumn 2}}" +Enable interpretation of backslash escapes (special characters): + diff --git a/tutorial/tutorial_cmd/git.txt b/tutorial/tutorial_cmd/git.txt new file mode 100644 index 0000000..4f03b75 --- /dev/null +++ b/tutorial/tutorial_cmd/git.txt @@ -0,0 +1,43 @@ +git config –global user.name “[name]” +sets the author name to be used with your commits +git config –global user.email “[email address]” +sets the email address to be used with your commits +git init [repository name] +to start a new repository +git clone [url] +to obtain a repository from an existing URL +git add [file] +adds a file to the staging area +git add * +adds one or more to the staging area. +git commit -m “[ Type in the commit message]” +records or snapshots the file permanently in the version history +git commit -a +commits any files you’ve added with the git add command and also commits any files you’ve changed since then +git diff –staged +shows the differences between the files in the staging area and the latest version present +git reset [file] +command unstages the file, but it preserves the file contents +git reset [commit] +command undoes all the commits after the specified commit and preserves the changes locally +git status +command lists all the files that have to be committed. +git log +command is used to list the version history for the current branch. +git branch +lists all the local branches in the current repository +git checkout [branch name] +command is used to switch from one branch to another +git merge [branch name] +merges the specified branch’s history into the current branch. +git remote add [variable name] [Remote Server Link] +command is used to connect your local repository to the remote server +git push [variable name] master +sends the committed changes of master branch to your remote repository +git push [variable name] [branch] +command sends the branch commits to your remote repository +git push –all [variable name] +command pushes all branches to your remote repository +git pull [Repository Link] +command fetches and merges changes on the remote server to your working directory + diff --git a/tutorial/tutorial_cmd/grep.txt b/tutorial/tutorial_cmd/grep.txt new file mode 100644 index 0000000..59df3c9 --- /dev/null +++ b/tutorial/tutorial_cmd/grep.txt @@ -0,0 +1,5 @@ +grep "{{search_pattern}}" {{path/to/file}} +Search for a pattern within a file +grep --fixed-strings "{{exact_string}}" {{path/to/file}} +Search for an exact string (disables regular expressions) + diff --git a/tutorial/tutorial_cmd/intermediatecmdlist b/tutorial/tutorial_cmd/intermediatecmdlist new file mode 100644 index 0000000..0d98df6 --- /dev/null +++ b/tutorial/tutorial_cmd/intermediatecmdlist @@ -0,0 +1,14 @@ +Cat +Print and concatenate files +echo +Print given arguments +chmod +Change the access permissions of a file or directory +grep +Find patterns in files using regular expressions +sort +Sort lines of text files +hostnamectl +to find hostname +git +used while working with git diff --git a/tutorial/tutorial_cmd/intermediatecmdlist.txt b/tutorial/tutorial_cmd/intermediatecmdlist.txt new file mode 100644 index 0000000..0d98df6 --- /dev/null +++ b/tutorial/tutorial_cmd/intermediatecmdlist.txt @@ -0,0 +1,14 @@ +Cat +Print and concatenate files +echo +Print given arguments +chmod +Change the access permissions of a file or directory +grep +Find patterns in files using regular expressions +sort +Sort lines of text files +hostnamectl +to find hostname +git +used while working with git diff --git a/tutorial/tutorial_cmd/ls.txt b/tutorial/tutorial_cmd/ls.txt new file mode 100644 index 0000000..fa8193a --- /dev/null +++ b/tutorial/tutorial_cmd/ls.txt @@ -0,0 +1,10 @@ +ls +ls command is used to list directory contents +ls -1 +List files one per line +ls -a +List all files, including hidden files +ls -F +List all files, with trailing / added to directory names +ls -la +Long format list (permissions, ownership, size, and modification date) of all files \ No newline at end of file diff --git a/tutorial/tutorial_cmd/man.txt b/tutorial/tutorial_cmd/man.txt new file mode 100644 index 0000000..a5dbd5d --- /dev/null +++ b/tutorial/tutorial_cmd/man.txt @@ -0,0 +1,2 @@ +man {command} +Display the man page for a command \ No newline at end of file diff --git a/tutorial/tutorial_cmd/mkdir.txt b/tutorial/tutorial_cmd/mkdir.txt new file mode 100644 index 0000000..0dedebe --- /dev/null +++ b/tutorial/tutorial_cmd/mkdir.txt @@ -0,0 +1,2 @@ +mkdir {{directory}} +Create a directory in current directory or given path \ No newline at end of file diff --git a/tutorial/tutorial_cmd/mv.txt b/tutorial/tutorial_cmd/mv.txt new file mode 100644 index 0000000..06ef240 --- /dev/null +++ b/tutorial/tutorial_cmd/mv.txt @@ -0,0 +1,6 @@ +mv {{source}} {{target}} +Move files in arbitrary locations +mv -f {{source}} {{target}} +Do not prompt for confirmation before overwriting existing files +mv -i {{source}} {{target}} +Prompt for confirmation before overwriting existing files, regardless of file permissions \ No newline at end of file diff --git a/tutorial/tutorial_cmd/pipe and redirections.txt b/tutorial/tutorial_cmd/pipe and redirections.txt new file mode 100644 index 0000000..b06f2a8 --- /dev/null +++ b/tutorial/tutorial_cmd/pipe and redirections.txt @@ -0,0 +1,2 @@ +command_1 | command_2 | command_3 | .... | command_N +to pass output of one command acts as input to another command \ No newline at end of file diff --git a/tutorial/tutorial_cmd/rmdir.txt b/tutorial/tutorial_cmd/rmdir.txt new file mode 100644 index 0000000..0f5eb75 --- /dev/null +++ b/tutorial/tutorial_cmd/rmdir.txt @@ -0,0 +1,4 @@ +rmdir {{path/to/directory}} +to remove directory *use rm-r to remove empty directory* +rmdir -p {{path/to/directory}} +Remove the target and its parent directories (useful for nested dirs) \ No newline at end of file diff --git a/tutorial/tutorial_cmd/sort.txt b/tutorial/tutorial_cmd/sort.txt new file mode 100644 index 0000000..452f39f --- /dev/null +++ b/tutorial/tutorial_cmd/sort.txt @@ -0,0 +1,9 @@ +sort {{path/to/file}} +Sort a file in ascending order +sort --reverse {{path/to/file}} +Sort a file in descending order +sort --ignore-case {{path/to/file}} +Sort a file in case-insensitive way +sort --numeric-sort {{path/to/file}} +Sort a file using numeric rather than alphabetic order + diff --git a/tutorial/tutorial_cmd/touch.txt b/tutorial/tutorial_cmd/touch.txt new file mode 100644 index 0000000..b08434e --- /dev/null +++ b/tutorial/tutorial_cmd/touch.txt @@ -0,0 +1,7 @@ +touch {{filename}} +Create a new empty file(s) or change the times for existing file(s) to current time +touch -t {{YYYYMMDDHHMM.SS}} {{filename}} +Set the times on a file to a specific date and time +touch -r {{filename}} {{filename2}} +Use the times from a file to set the times on a second file +