creating test1 and test2 files in /var directory in Linux,

Clash Royale CLAN TAG#URR8PPP
up vote
-2
down vote
favorite
I need to create test1 and test2 files in /var directory in Linux , and creating Hard link for test1 file and soft link for test2 file in /tmp
linux files symlink hard-link
New contributor
Ava is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
-2
down vote
favorite
I need to create test1 and test2 files in /var directory in Linux , and creating Hard link for test1 file and soft link for test2 file in /tmp
linux files symlink hard-link
New contributor
Ava is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3
Perhaps you could show what you already know (or have learned) and what you tried, and what the results were?
– Jeff Schaller
yesterday
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I need to create test1 and test2 files in /var directory in Linux , and creating Hard link for test1 file and soft link for test2 file in /tmp
linux files symlink hard-link
New contributor
Ava is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I need to create test1 and test2 files in /var directory in Linux , and creating Hard link for test1 file and soft link for test2 file in /tmp
linux files symlink hard-link
linux files symlink hard-link
New contributor
Ava is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Ava is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited yesterday
Rui F Ribeiro
38.1k1475123
38.1k1475123
New contributor
Ava is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked yesterday
Ava
11
11
New contributor
Ava is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Ava is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Ava is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3
Perhaps you could show what you already know (or have learned) and what you tried, and what the results were?
– Jeff Schaller
yesterday
add a comment |
3
Perhaps you could show what you already know (or have learned) and what you tried, and what the results were?
– Jeff Schaller
yesterday
3
3
Perhaps you could show what you already know (or have learned) and what you tried, and what the results were?
– Jeff Schaller
yesterday
Perhaps you could show what you already know (or have learned) and what you tried, and what the results were?
– Jeff Schaller
yesterday
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
touch /var/file1 /var/file2
This will create file1 and file2 in /var directory.
ln /var/file1 /tmp/hard_link_to_file1
This will create hard link to file1 in /tmp directory.
ln -s /var/file2 /tmp/symbolic_link_to_file2
This will create symbolic link to file2 in /tmp directory.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
touch /var/file1 /var/file2
This will create file1 and file2 in /var directory.
ln /var/file1 /tmp/hard_link_to_file1
This will create hard link to file1 in /tmp directory.
ln -s /var/file2 /tmp/symbolic_link_to_file2
This will create symbolic link to file2 in /tmp directory.
add a comment |
up vote
1
down vote
accepted
touch /var/file1 /var/file2
This will create file1 and file2 in /var directory.
ln /var/file1 /tmp/hard_link_to_file1
This will create hard link to file1 in /tmp directory.
ln -s /var/file2 /tmp/symbolic_link_to_file2
This will create symbolic link to file2 in /tmp directory.
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
touch /var/file1 /var/file2
This will create file1 and file2 in /var directory.
ln /var/file1 /tmp/hard_link_to_file1
This will create hard link to file1 in /tmp directory.
ln -s /var/file2 /tmp/symbolic_link_to_file2
This will create symbolic link to file2 in /tmp directory.
touch /var/file1 /var/file2
This will create file1 and file2 in /var directory.
ln /var/file1 /tmp/hard_link_to_file1
This will create hard link to file1 in /tmp directory.
ln -s /var/file2 /tmp/symbolic_link_to_file2
This will create symbolic link to file2 in /tmp directory.
answered yesterday
Debian_yadav
1,1183922
1,1183922
add a comment |
add a comment |
Ava is a new contributor. Be nice, and check out our Code of Conduct.
Ava is a new contributor. Be nice, and check out our Code of Conduct.
Ava is a new contributor. Be nice, and check out our Code of Conduct.
Ava is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481505%2fcreating-test1-and-test2-files-in-var-directory-in-linux%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3
Perhaps you could show what you already know (or have learned) and what you tried, and what the results were?
– Jeff Schaller
yesterday