$ if [ false ]; then echo "That was a true statement"; fi
Compare cert salaries and plan your next career move
paul78 wrote: » Oh - how cool - I didn't know bash had a builtin tcp device file. Good one.
onesaint wrote: » it's not apparent unless you've read about it someplace
onesaint wrote: » Great reference thread and question!
hiddenknight821 wrote: » Great thought-provoking question again, @ChooseLife.
[COLOR=#000000][FONT=verdana] [/FONT][/COLOR]00 22 22-31 * * [COLOR=#000000][FONT=verdana]test 'date +\%a' != Sat || /backup.sh[/FONT][/COLOR]
ChooseLife wrote: » Question: How can you download a file from an HTTP server using bash without netcat/curl/wget/w3m/lynx?
$ echo Test > /var/log/my_new_custom.log bash: echo: write error: No space left on device $ su # echo Test > /var/log/my_new_custom.log bash: echo: write error: No space left on device
$ ls -al /var/log drwxr-xr-x 18 root root 4096 May 17 10:24 . drwxr-xr-x 12 root root 4096 May 17 09:40 .. $ ls -l /var drwxr-xr-x 18 root root 4096 May 17 10:24 log drwxr-xr-x 10 root root 4096 Mar 17 10:22 spool drwxrwxrwt 2 root root 4096 May 17 09:54 tmp $ df /var /dev/sdb1 156185596 42384420 113801176 28% /var
UnixGuy wrote: » Maybe...
UnixGuy wrote: » Interesting problem, I run into it from time to time with servers that run Oracle databases.
paul78 wrote: » Good one. I pm'd my guess so I don't hog the answer attempts.
onesaint wrote: » When I was first starting to learn Linux, the guy teaching stressed the point of using mv when i couls as opposed to cp because you'll use up the items in question (if I'm right).
What command can you execute to find the root cause of the issue?
onesaint wrote: » # df -i would give you node info
paul78 wrote: » And then used find -size to find all the small files. Usually there's a bunch of small temp files lying around if its a email or spooler.
ChooseLife wrote: » Question: Suppose you are on a production server and are trying to create a new log file. However, you encounter the following behaviour:$ echo Test > /var/log/my_new_custom.log bash: echo: write error: No space left on device $ su # echo Test > /var/log/my_new_custom.log bash: echo: write error: No space left on device ...Why is the system complaining about lack of space? What command can you execute to find the root cause of the issue?
onesaint wrote: » I've got (maybe an easy) one for you all: Let's say I accidentally did an rm -rf on ../httpd/access_log but I still need the file. Is it recoverable? If so, how?
parted -l
fdisk -l
Compare salaries for top cybersecurity certifications. Free download for TechExams community.