Please enable JavaScript.
Coggle requires JavaScript to display documents.
Linux Basics, Maven, IDEA, Git, Angular - Coggle Diagram
Linux Basics
Commands
File System
-
ll or ls -l typically includes information such as the file/directory permissions, owner, group, file size, modification date, and name of each entry in the current directory.
-
-
-
-
-
cp
cp source_file destination_file #copy a file
cp -r source_directory destination_directory # Recursively copy a directory
mv
mv old_filename new_filename
mv file_or_directory /path/to/destination # Move to a different directory
"tree" will display the entire directory structure, starting from the current directory, with subdirectories and their contents.
find #This command can be used to search for files or directories in a hierarchy find /path/to/directory -name "filename.txt"
The MD5 checksum is a 128-bit hash value representing the content of a file. It is commonly used to verify data integrity, ensuring that a file has not been altered or corrupted during transmission or storage.
Network
Ping
ping is a command-line utility used to test the reachability of a host on an Internet Protocol (IP) network.
he ping utility sends a series of Internet Control Message Protocol (ICMP) echo request messages to the target host and waits for ICMP echo reply messages in response. This allows you to check if the target host is reachable and measure the round-trip time (RTT) for packets to travel to and from the host.
-
-
nslookup is a command-line utility used to query the Domain Name System (DNS) to obtain domain name or IP address information. nslookup example.com
netstat (network statistics) is a command-line utility available in Unix-based operating systems, including Linux. It is used to display network-related information such as active network connections, routing tables, network interface statistics, and more.
telnet is a command-line tool and network protocol used for interactive communication with remote computers or servers over a network. It allows you to establish a text-based terminal connection to a remote host using the Telnet protocol. With telnet, you can connect to a remote server and interact with it as if you were using a terminal directly on that server.
-
files
The tar command in Linux is used to create, view, extract, and manage archive files in the tar format. The name "tar" stands for "tape archive,"
The sort command in Linux is used to sort lines of text in a file or standard input and display the result in the terminal or write it to a new file. It's a versatile command that can be used to sort data in various ways.
-
-
The zip command in Linux is used to compress files and directories into a ZIP archive. ZIP is a popular compression format that bundles multiple files and directories together, reducing their overall size and making it easier to transfer or store them.
zip archive.zip file.txt
-
-
Other
du # command is helpful for identifying disk space hogs on your system and managing storage efficiently.
-
-
-
chmod permissions filename # e.g., chmod 644 filename
(you can read and write the file or directory and other users can only read it.)
-
echo "Hello, Linux!" #prints in console
echo "Hello, Linux!" > output.txt # Redirect output to a file
man command_name # e.g., man ls
-
Maven
Life Cycles
-
Default Lifecycle
-
-
-
package: Creates a distributable package (e.g., JAR, WAR) of the compiled code.
-
-
-
-
-
-
Modes
Interactive Mode
Use interactive mode when you need to make decisions during the build process, customize configurations, or when you're working directly in a terminal and want to see and interact with Maven's prompts.
Non Interactive Mode
Non-Interactive Mode: Use non-interactive mode when running Maven in automated scripts, continuous integration environments, or any scenario where manual intervention isn't possible or necessary.
-
Git
Git Commands
-
-
git add [file(s)]: Adds specified file(s) to the staging area, preparing them for a commit.
git commit -m "Commit message":
Commits the staged changes with a descriptive message explaining the changes made.
git status:
Displays the status of the working directory, showing which files are modified, staged, or untracked.
-
git log:
Displays a chronological list of commits in the repository, including their commit messages and hashes.
-
git checkout [branch]:
Switches to the specified branch. Can also be used to create and switch to a new branch.
-
-
-
-
-
git reset [file(s)]:
Removes file(s) from the staging area, preserving changes in the working directory.
git revert [commit]:
Creates a new commit that undoes the changes introduced by the specified commit.
git rm [file(s)]:
Removes file(s) from the working directory and stages the removal for the next commit.
-
git show [commit]:
Displays information about the specified commit, including changes made in that commit.
-
Angular
Commands
-
generate components, Service and modules
-
-
-
-
-
-
-
-
-
-
-