Linux fundamental part 1
Linux Fundamentals Part 1
Task 4
How would you output hello without a newline?
- In the man pages you can see the option (man echo)
-n do not output the trailing newline
answer : echo -n hello
Task 5
- In this case you can also watch over the man pages
-l = long listing
-a = show hidden dot files
-t = List by time
- What flag outputs all entries?
-a
- What flag outputs things in a “long list” format?
-l
Task 6
- They provide a nice picture easily you can get the flag
- What flag numbers all output lines?
-n
Task 8
- How would you run a binary called hello using the directory shortcut . ?
./hello
- How would you run a binary called hello in your home directory using the shortcut ~ ?
~/hello
- How would you run a binary called hello in the previous directory using the shortcut … ?
../hello
Task 9
shiba1@nootnoot:~$ touch noot.txt
shiba1@nootnoot:~$ ls
noot.txt shiba1
shiba1@nootnoot:~$ ./shiba1 > noot.txt
shiba1@nootnoot:~$ cat noot.txt
pinguftw
- What’s the password for shiba2 ?
pinguftw