Intern — Junior
What commands do you know for working with the console and can use in everyday practice?
sobes.tech AI
Answer from AI
In everyday practice, the following commands are often used for working with the console in Java and Unix/Linux-based systems:
ls— displays a list of files and folders in the current directory.cd— changes the current directory.pwd— shows the current path.mkdir— creates a new directory.rm— deletes files or folders.cat— displays the contents of a file.echo— outputs text to the console.javac— compiles Java files.java— runs a Java application.java -jar— runs a Java program from a JAR file.grep— searches through text.toporhtop— monitors processes.
For Windows, the equivalents are often used:
dir— list of files.cd— change directory.del— delete files.
These commands help manage files, run, and debug Java applications from the console.