Title here
Summary here
You can use the following one-liner to create 10 files named Report1
, Report2
, …, Report10
in your home directory:
&&
or ;
&&
(Logical AND)
&&
is used to chain commands, but the second command only runs if the first command is successful. It is typically used when you want to run the next command only if the previous command succeeds.;
(simicolon)
;
runs the commands in sequence, regardless of whether the previous command succeeds or fails.But can I make it shorter?
You can simplify this one-liner by using tilde ~ to represent /home/student and combining the commands in a more concise way:
Creating a symlink
Task: Create a Directory Thesis
, subdirectories Chapter 1 - Chapter5
and inside of Thesis/Chapter4
create a file called lesson1
.